@extends('layouts.master') @section('title', 'My attendance | Proxima - Medical Management app') @section('title-topbar', 'My Attendance') @section('css') @endsection @if (Session::has('success'))
@endif @section('content'){{ __('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 }} |