@component('components.widget', ['class' => 'box-solid', 'title' => __( 'essentials::lang.leaves_summary_for_user', ['user' => $user->user_full_name] )])
@foreach($statuses as $status) @endforeach @foreach($leave_types as $leave_type) @foreach($statuses as $k => $v) @endforeach @endforeach @foreach($status_summary as $count) @endforeach
{{$status['name']}} @lang('essentials::lang.max_allowed_leaves')
{{$leave_type->leave_type}} @if(!empty($leaves_summary[$leave_type->id][$k])) {{$leaves_summary[$leave_type->id][$k]}} @lang('lang_v1.days') @else 0 @endif @if(!empty($leave_type->max_leave_count)) {{$leave_type->max_leave_count}} @lang('lang_v1.days') @if($leave_type->leave_count_interval == 'month') (@lang('essentials::lang.within_current_month')) @elseif($leave_type->leave_count_interval == 'year') (@lang('essentials::lang.within_current_fy')) @endif @else N/A @endif
@lang('sale.total'){{$count}} @lang('lang_v1.days')
@endcomponent