Files
kulakpos_web/Modules/HrmAddon/resources/views/reports/payrolls/excel.blade.php
eko54r 3e1b64e008
Some checks failed
Build, Push and Deploy / build-and-push (push) Failing after 3m30s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Has been skipped
Build, Push and Deploy / deploy-production (push) Has been skipped
update addon HRM
2026-05-04 23:04:09 +07:00

49 lines
2.1 KiB
PHP

<table class="table" id="datatable">
<thead>
<tr>
<th>{{ __('SL') }}.</th>
<th class="text-start">{{ __('Employee') }}</th>
<th class="text-start">{{ __('Date') }}</th>
<th class="text-start">{{ __('Month') }}</th>
<th class="text-start">{{ __('Slip No') }}</th>
<th class="text-start">{{ __('Amount') }}</th>
<th class="text-start">{{ __('Payment Type') }}</th>
<th class="text-center">{{ __('Status') }}</th>
</tr>
</thead>
<tbody>
@foreach ($payrolls as $payroll)
<tr>
<td>{{ $loop->iteration }}</td>
<td class="text-start">{{ $payroll->employee->name ?? '' }}</td>
<td class="text-start">{{ formatted_date($payroll->date) }}</td>
<td class="text-start">{{ ucfirst($payroll->month) }}</td>
<td class="text-start">{{ $payroll->puid }}</td>
<td class="text-start">{{ currency_format($payroll->amount, currency: business_currency()) }}</td>
<td class="text-start">{{ $payroll->payment_type->name ?? 'Cash' }}</td>
@if ($payroll->status == 'unpaid')
<td class="text-warning text-center">
<div class="padding-status">Unpaid</div>
</td>
@else
<td class="text-warning text-center">
<div class="approved-status">Paid</div>
</td>
@endif
</tr>
@endforeach
</tbody>
@if ($payrolls->count() > 0)
<tr class="table-footer">
<td class="text-start">{{__('Total')}}</td>
<td class="text-start"></td>
<td class="text-start"></td>
<td class="text-start"></td>
<td class="text-start"></td>
<td class="text-start">{{ currency_format($payrolls->sum('amount'), currency: business_currency()) }}</td>
<td class="text-start"></td>
<td class="text-start"></td>
</tr>
@endif
</table>