@php use Illuminate\Support\Str; $configData = Helper::appClasses(); @endphp @extends('layouts/layoutMaster') @section('title', __('Employee Dashboard')) @section('vendor-style') @vite([ 'resources/assets/vendor/libs/apex-charts/apex-charts.scss' ]) @endsection @section('page-style') @vite([ 'resources/assets/vendor/scss/pages/card-analytics.scss' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/apex-charts/apexcharts.js' ]) @endsection @section('content')
{{ __('Here\'s what\'s happening with your work today.') }}
{{ $todayAttendance->check_in_time->format('h:i A') }}
{{ $todayAttendance->check_out_time->format('h:i A') }}
@php $totalHours = floor($todayAttendance->check_in_time->diffInHours($todayAttendance->check_out_time)); $totalMinutes = $todayAttendance->check_in_time->diffInMinutes($todayAttendance->check_out_time) % 60; @endphp @if($totalHours > 0) {{ $totalHours }}h {{ $totalMinutes }}m @else {{ $totalMinutes }}m @endif
@php $currentHours = floor($todayAttendance->check_in_time->diffInHours(now())); $currentMinutes = $todayAttendance->check_in_time->diffInMinutes(now()) % 60; @endphp @if($currentHours > 0) {{ $currentHours }}h {{ $currentMinutes }}m @else {{ $currentMinutes }}m @endif
{{ __('You haven\'t checked in today yet.') }}