@extends('layouts.app') @section('content')

دورة رواتب شهر: {{ $cycle->month }}

{{ $cycle->branch->name }} | {{ $cycle->status === 'approved' ? 'معتمدة' : 'مسودة' }}

@if($cycle->status !== 'approved') @can('approve_payrolls')
@csrf
@endcan @endif @can('export_payrolls') @endcan عودة
@if($cycle->status !== 'approved') @endif @foreach($cycle->payrolls as $payroll) @if($cycle->status !== 'approved') @endif @endforeach
الموظف الأساسي البدلات الخصومات العمولات الصافيإدارة
{{ $payroll->employee->name }}
{{ $payroll->employee->job_title }}
@if($cycle->status !== 'approved') @else {{ number_format($payroll->basic_salary, 2) }} @endif +{{ number_format($payroll->total_allowances, 2) }} -{{ number_format($payroll->total_deductions, 2) }} +{{ number_format($payroll->total_commissions, 2) }} {{ number_format($payroll->net_salary, 2) }}
@endsection