update addon HRM
Some checks failed
Some checks failed
This commit is contained in:
77
Modules/HrmAddon/resources/views/holidays/datas.blade.php
Normal file
77
Modules/HrmAddon/resources/views/holidays/datas.blade.php
Normal file
@@ -0,0 +1,77 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
@usercan('holidays.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">{{ __('Name') }}</th>
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<th class="text-start">{{ __('Branch') }}</th>
|
||||
@endif
|
||||
<th class="text-start">{{ __('Start Date') }}</th>
|
||||
<th class="text-start">{{ __('End Date') }}</th>
|
||||
<th class="text-start">{{ __('Description') }}</th>
|
||||
<th>{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($holidays as $holiday)
|
||||
<tr>
|
||||
@usercan('holidays.delete')
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $holiday->id }}">
|
||||
</td>
|
||||
@endusercan
|
||||
<td>{{ ($holidays->currentPage() - 1) * $holidays->perPage() + $loop->iteration }}</td>
|
||||
<td class="text-start">{{ $holiday->name }}</td>
|
||||
@if (auth()->user()->accessToMultiBranch())
|
||||
<td class="text-start">{{ $holiday->branch->name ?? '' }}</td>
|
||||
@endif
|
||||
<td class="text-start">{{ formatted_date($holiday->start_date) }}</td>
|
||||
<td class="text-start">{{ formatted_date($holiday->end_date) }}</td>
|
||||
<td class="text-start">{{ Str::limit($holiday->description, 20, '...') }}</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('holidays.update')
|
||||
<li>
|
||||
<a href="#holidays-edit-modal" data-bs-toggle="modal" class="holidays-edit-btn"
|
||||
data-url="{{ route('hrm.holidays.update', $holiday->id) }}"
|
||||
data-holidays-name="{{ $holiday->name }}"
|
||||
data-holidays-start-date="{{ $holiday->start_date }}"
|
||||
data-holidays-end-date="{{ $holiday->end_date }}"
|
||||
data-holidays-description="{{ $holiday->description }}">
|
||||
<i class="fal fa-pencil-alt"></i>{{ __('Edit') }}</a>
|
||||
</li>
|
||||
@endusercan
|
||||
@usercan('holidays.delete')
|
||||
<li>
|
||||
<a href="{{ route('hrm.holidays.destroy', $holiday->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">
|
||||
{{ $holidays->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user