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

Sent Successfully

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

@endif @if (Session::has('error_delete'))

There is a problem

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

@endif @endsection @section('content')
@error('branch_id_all') {{ $message }} @enderror
{{ __('basic.current time') }}:

{{ Carbon\Carbon::now() }}

@if (!$atten)
{{ __('basic.my location') }}:
@endif @if (empty($atten->leave_time)) @if (Auth::user()->branch_id == 0)
{{ __('basic.branch') }}:
@error('branch_id_all') {{ $message }} @enderror
@endif @endif
{{ __('basic.arrived') }}:
@if ($atten)

{{ date('d M Y | h:i A', strtotime($atten->arrived_time)) }}

@else {{ __('basic.arrive') }} @endif
@if (!empty($atten->arrived_time))
{{ __('basic.leave') }}:
@if ($atten->leave_time)

{{ date('d M Y | h:i A', strtotime($atten->leave_time)) }}

@else {{ __('basic.leave') }} @endif
@endif @if (!empty($atten->leave_time))
{{ __('basic.working hours') }}:

@php $totalDuration = Carbon\Carbon::parse($atten->leave_time) ->diff($atten->arrived_time) ->format('%H hour %i minute'); @endphp {{ $totalDuration }}

@endif
@endsection @section('js') @endsection