@extends('layouts.master') @section('title', 'Attendance | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.attendance')) @section('css') @endsection @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @section('content')
{{ __('basic.dashboard')}} | {{ __('basic.users')}} | {{ __('basic.attendance')}}

{{ __('basic.attended') }}

@if($atten) {{ count($atten) }} @endif
{{ __('basic.workers') }}

{{ __('basic.total workers') }}

{{ $total_workers }}
{{ __('basic.workers') }}

{{ __('basic.not attended') }}

@if($not_attended) {{ count($not_attended) }} @endif
{{ __('basic.workers') }}

{{ __('basic.vacation or sick leave') }}

@if($vacation_sickleave) {{ count($vacation_sickleave) }} @endif
{{ __('basic.workers') }}
{{ __('basic.attendance')}} @if (request()->date) {{ request()->date }} @else tdoay {{ date('Y-m-d') }} @endif
@foreach ($atten as $item) @endforeach
{{ __('basic.date') }} {{ __('basic.branch') }} {{ __('basic.worker') }} {{ __('basic.start') }} {{ __('basic.end') }} {{ __('basic.working hours') }} {{ __('basic.handle') }}
{{ date('d M Y', strtotime($item->arrived_time)) }} {{ $item->branch->name }} @if($item->worker) {{ $item->worker->full_name }} @endif {{ date('h:i A', strtotime($item->arrived_time)) }} @if($item->leave_time) {{ date('h:i A', strtotime($item->leave_time)) }} @endif @php $totalDuration = Carbon\Carbon::parse($item->leave_time) ->diff($item->arrived_time) ->format('%H hour %i minute'); $totalDuration_hours = Carbon\Carbon::parse($item->leave_time) ->diff($item->arrived_time) ->format('%H'); @endphp @if ($totalDuration_hours >= $fixed_working_hours) @endif {{ $totalDuration }} {{ __('basic.edit') }}
{{ __('basic.not attended')}} @if (request()->date) {{ request()->date }} @else tdoay {{ date('Y-m-d') }} @endif
@foreach ($not_attended as $item) @endforeach
{{ __('basic.worker') }}
{{ $item->full_name }}
{{ __('basic.vacation or sick leave')}} @if (request()->date) {{ request()->date }} @else tdoay {{ date('Y-m-d') }} @endif
@foreach ($vacation_sickleave as $item) @endforeach
{{ __('basic.vacation or sick leave') }}
@if($item->worker) {{ $item->worker->full_name }} @endif
@endsection @section('js') @endsection