×
@if($modalHeader == 'approved') @lang('app.approved') @elseif($modalHeader == 'pending') @lang('app.pending') @else @lang('app.upcoming') @endif @lang('app.menu.leaves') @lang('app.details')
@foreach($leave_types as $leave_type)
{{ $leave_type->leaves->count() }}
{{ $leave_type->type_name }}
@endforeach
@lang('modules.leaves.leaveType')
@lang('app.date')
@lang('modules.leaves.reason')
@forelse($leaves as $key=>$leave)
{{ ucwords(str_replace('_', '-', $leave->type_name)) }}
{!! ($leave->duration == 'half day') ? '
'.__('modules.leaves.halfDay').'
' : "" !!}
{{ $leave->leave_date->format($global->date_format) }}
{{ $leave->reason }}
@empty
@lang('messages.noRecordFound')
@endforelse