update addon HRM
Some checks failed
Some checks failed
This commit is contained in:
88
Modules/HrmAddon/resources/views/payrolls/datas.blade.php
Normal file
88
Modules/HrmAddon/resources/views/payrolls/datas.blade.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('payrolls.delete')
|
||||
<th class="w-60">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<input type="checkbox" class="select-all-delete multi-delete">
|
||||
</div>
|
||||
</th>
|
||||
@endusercan
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th class="text-start">{{ __('Employee') }}</th>
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<th class="text-start">{{ __('Branch') }}</th>
|
||||
@endif
|
||||
<th class="text-start">{{ __('Payment Year') }}</th>
|
||||
<th class="text-start">{{ __('Month') }}</th>
|
||||
<th class="text-start">{{ __('Receipt No') }}</th>
|
||||
<th class="text-start">{{ __('date') }}</th>
|
||||
<th class="text-start">{{ __('Amount') }}</th>
|
||||
<th class="text-start">{{ __('Payment Type') }}</th>
|
||||
<th class="text-center">{{ __('Status') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($payrolls as $payroll)
|
||||
<tr>
|
||||
@usercan('payrolls.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $payroll->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
<td>{{ ($payrolls->currentPage() - 1) * $payrolls->perPage() + $loop->iteration }}</td>
|
||||
<td class="text-start">{{ $payroll->employee->name ?? '' }}</td>
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<td class="text-start">{{ $payroll->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ $payroll->payemnt_year }}</td>
|
||||
<td class="text-start">{{ ucfirst($payroll->month) }}</td>
|
||||
<td class="text-start">{{ $payroll->puid }}</td>
|
||||
<td class="text-start">{{ formatted_date($payroll->date) }}</td>
|
||||
<td class="text-start">{{ currency_format($payroll->amount, 'icon', 2, business_currency()) }}</td>
|
||||
<td class="text-start">{{ $payroll->payment_type->name ?? 'Cash' }}</td>
|
||||
<td class="text-warning text-center">
|
||||
<div class="approved-status">Paid</div>
|
||||
</td>
|
||||
<td class="print-d-none">
|
||||
<div class="dropdown table-action">
|
||||
<button type="button" data-bs-toggle="dropdown">
|
||||
<i class="far fa-ellipsis-v"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
@usercan('payrolls.update')
|
||||
<li>
|
||||
<a href="#payrolls-edit-modal" data-bs-toggle="modal" class="payrolls-edit-btn"
|
||||
data-url="{{ route('hrm.payrolls.update', $payroll->id) }}"
|
||||
data-employee-id="{{ $payroll->employee_id }}"
|
||||
data-payment-type-id="{{ $payroll->payment_type_id }}"
|
||||
data-date="{{ $payroll->date }}" data-month="{{ $payroll->month }}"
|
||||
data-note="{{ $payroll->note }}" data-amount="{{ $payroll->amount }}"
|
||||
data-payment-year="{{ $payroll->payemnt_year }}">
|
||||
<i class="fal fa-pencil-alt"></i>{{ __('Edit') }}</a>
|
||||
</li>
|
||||
@endusercan
|
||||
@usercan('payrolls.delete')
|
||||
<li>
|
||||
<a href="{{ route('hrm.payrolls.destroy', $payroll->id) }}" class="confirm-action"
|
||||
data-method="DELETE">
|
||||
<i class="fal fa-trash-alt"></i>
|
||||
{{ __('Delete') }}
|
||||
</a>
|
||||
</li>
|
||||
@endusercan
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="mt-3">
|
||||
{{ $payrolls->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user