@extends('layouts.employee') @section('title', 'My Visits') @section('content')

My Visits

All your scheduled and completed visits

@forelse($visits as $visit) @empty @endforelse
Client Date & Time Location Status Actions
{{ $visit->client->name }}
{{ $visit->purpose }}
{{ $visit->scheduled_date->format('M d, Y') }}
{{ $visit->scheduled_time }}
{{ $visit->client->city->name ?? 'N/A' }}
{{ $visit->client->area }}
@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->status == 'scheduled')
@csrf
@endif @if($visit->status == 'in_progress') @endif View

No visits found

Your supervisor will assign visits to you.

@if($visits->hasPages())
{{ $visits->links() }}
@endif
@endsection