@if(isset($employeeLeaves) && $employeeLeaves->isNotEmpty())
isNotEmpty()) class="tab-pane fade active show" @else class="tab-pane fade" @endif id="custom-tabs-employee" role="tabpanel" aria-labelledby="custom-tabs-employee-tab">
| {{ __('global.no') }} |
{{ __('leave.start_date') }} |
{{ __('leave.end_date') }} |
{{ __('leave.days') }} |
{{ __('leave.type') }} |
{{ __('leave.description') }} |
{{ __('leave.attachment') }} |
{{ __('leave.status') }} |
{{ __('leave.date') }} |
|
@php $counter = ($employeeLeaves->currentPage() - 1) * $employeeLeaves->perPage() + 1; @endphp
@foreach($employeeLeaves as $leave)
|
|
{{ getJalaliDate($leave->start_date) }} |
{{ getJalaliDate($leave->end_date) }} |
[{{ $leave->total_days}}] |
{{ $leave->leaveTypes->{'name_'.$lang} }} |
{{ $leave->description }} |
@if ($leave->attachment)
{{ $leave->attachment }}
@endif
|
{{ $leave->status }} |
{{ getJalaliDate($leave->created_at) }} |
|
|
|
@endforeach
@endif