@extends('layouts.app') @section('title', __('essentials::lang.hrm')) @section('content') @include('essentials::layouts.nav_hrm')
@forelse($users_leaves as $user_leave) @empty @endforelse
@lang('essentials::lang.my_leaves')
{{@format_date($user_leave->start_date)}} - {{@format_date($user_leave->end_date)}} {{$user_leave->leave_type->leave_type}}
@lang('lang_v1.no_data')
@if(!$is_admin) @include('essentials::dashboard.holidays') @endif
@if($is_admin)
@endif
@can('user.view')
{{ __('user.users') }} {{$users->count()}}
@forelse($departments as $department) @empty @endforelse
{{ __('essentials::lang.department') }} {{ __('sale.total') }}
{{$department->name}} @if(!empty($users_by_dept[$department->id])){{count($users_by_dept[$department->id])}} @else 0 @endif
@lang('lang_v1.no_data')
@endcan @can('essentials.approve_leave')

@lang('essentials::lang.leaves')

@forelse($todays_leaves as $leave) @empty @endforelse @forelse($upcoming_leaves as $leave) @empty @endforelse
@lang('home.today')
{{@format_date($leave->start_date)}} - {{@format_date($leave->end_date)}} {{$leave->leave_type->leave_type}}
@lang('lang_v1.no_data')
 
@lang('lang_v1.upcoming')
{{@format_date($leave->start_date)}} - {{@format_date($leave->end_date)}} {{$leave->leave_type->leave_type}}
@lang('lang_v1.no_data')
@endcan @if($is_admin) @include('essentials::dashboard.holidays') @endif
@if($is_admin)

@lang('essentials::lang.todays_attendance')

@forelse($todays_attendances as $attendance) @empty @endforelse
@lang('essentials::lang.employee') @lang('essentials::lang.clock_in') @lang('essentials::lang.clock_out')
{{$attendance->employee->user_full_name}} {{@format_datetime($attendance->clock_in_time)}} @if(!empty($attendance->clock_in_note))
{{$attendance->clock_in_note}} @endif
@if(!empty($attendance->clock_out_time)) {{@format_datetime($attendance->clock_out_time)}} @endif @if(!empty($attendance->clock_out_note))
{{$attendance->clock_out_note}} @endif
@lang('lang_v1.no_data')
@endif
@endsection