@extends('layouts.master') @section('title', 'attendance | Proxima - Medical Management app') @section('title-topbar', 'Attendance') @section('css') @endsection @if (Session::has('success'))

Sent Successfully

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

@endif @section('content')
Dashboard | Users | Attendance
Attendance @if (request()->date) {{ request()->date }} @else this month @endif
@foreach ($atten as $item) @endforeach
{{ __('basic.date') }} {{ __('basic.branch') }} {{ __('basic.start') }} {{ __('basic.end') }} {{ __('basic.working hours') }} {{ __('basic.handle') }}
{{ date('d M Y', strtotime($item->arrived_time)) }} {{ $item->branch->name }} {{ date('h:i A', strtotime($item->arrived_time)) }} {{ date('h:i A', strtotime($item->leave_time)) }} @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') }}
@endsection @section('js') @endsection