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

Sent Successfully

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

@endif @section('content')
Dashboard | My Attendance
My 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') }}
{{ 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 }}
@endsection @section('js') @endsection