@extends('layouts.app') @section('title', 'Dashboard- Canindigo INC') @section('page-title', 'Dashboard') @section('content')

Total Hours Worked

{{ $hoursData['total_all'] ?? 0 }} hrs

{{ $hoursData['timesheet_count'] ?? 0 }} timesheets

Today's Hours

{{ $dailyHoursData['daily_all'] ?? 0 }} hrs

{{ $dailyHoursData['daily_timesheet_count'] ?? 0 }} entries today

Today's Distance

{{ $totalKmToday ?? 0 }} KM

Driven today

Vehicle Usage

{{ $vehicleBookingsCount ?? 0 }}

Vehicle bookings

Pending Expenses

{{ $pendingExpensesCount ?? 0 }}

Awaiting approval

Regular Hours

{{ $hoursData['total_regular'] ?? 0 }} hrs

Over Time Weekday

{{ $hoursData['total_overtime_weekdays'] ?? 0 }} hrs

Over Time Weekend

{{ $hoursData['total_overtime_weekend'] ?? 0 }} hrs

Recent Time Sheets

@if(isset($recentTimeSheets) && $recentTimeSheets->count() > 0) View All @endif
@if(isset($recentTimeSheets) && $recentTimeSheets->count() > 0)
@foreach($recentTimeSheets as $timesheet)

{{ $timesheet->project_code ?? 'No Project' }}

{{ $timesheet->date ? $timesheet->date->format('M d, Y') : 'No date' }}

{{ date('g:i A', strtotime($timesheet->start_time)) }} - {{ date('g:i A', strtotime($timesheet->end_time)) }}

@php $start = \Carbon\Carbon::parse($timesheet->start_time); $end = \Carbon\Carbon::parse($timesheet->end_time); $hours =- round($end->diffInMinutes($start) / 60, 2); @endphp {{ $hours }} hrs
@endforeach
@else

No time sheets yet

Start by creating your first timesheet

Create Timesheet
@endif

Recent Activities

Activity tracking coming soon

Your activities will appear here once enabled

@endsection