{{$leave->leave_date->translatedFormat(company()->date_format)}}
|
{{ $leave->type->type_name }}
|
@php
if ($leave->status == 'approved') {
$class = 'text-light-green';
$status = __('app.approved');
}
else if ($leave->status == 'pending') {
$class = 'text-yellow';
$status = __('app.pending');
}
else {
$class = 'text-red';
$status = __('app.rejected');
}
@endphp
{{$status}}
|
@if($viewType == 'model')
@if ($leave->status == 'pending')
@endif
|
@else
|
@endif
@empty