@lang('app.leaveDate') @lang('app.leaveType') @lang('app.status') @lang('app.action') @forelse($multipleLeaves as $leave) {{$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')
id }} data-leave-action="approved" data-toggle="tooltip" data-original-title="@lang('app.approve')" data-leave-type-id="{{ $leave->leave_type_id }}" href="javascript:;">
id }} data-leave-action="rejected" data-toggle="tooltip" data-original-title="@lang('app.reject')" data-leave-type-id="{{ $leave->leave_type_id }}" href="javascript:;">
@endif
id}} data-type="multiple-leave" data-unique-id="{{$leave->unique_id}}" class="dropdown-item delete-table-row action-hover" data-toggle="tooltip" data-original-title="@lang('app.delete')" href="javascript:;">
@else
@endif @empty @endforelse