update addon HRM
Some checks failed
Some checks failed
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<div class="responsive-table m-0">
|
||||
<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>{{ ($payrolls->currentPage() - 1) * $payrolls->perPage() + $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>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $payrolls->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user