@extends('layouts.dashboard') @section('title', $client->name . ' - Client Details') @section('content')
| Date & Time | Employee | Status | Duration |
|---|---|---|---|
|
{{ $visit->scheduled_date->format('M d, Y') }}
{{ $visit->scheduled_time }}
|
{{ $visit->employee->name }}
{{ $visit->employee->employee_id }}
|
@php $statusColors = [ 'scheduled' => 'bg-yellow-100 text-yellow-800', 'in_progress' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800' ]; @endphp {{ str_replace('_', ' ', ucfirst($visit->status)) }} | @if($visit->started_at && $visit->completed_at) {{ $visit->started_at->diff($visit->completed_at)->format('%H:%I') }} @else -- @endif |