@extends('layouts.app') @section('title', 'Appointments') @section('no-page-header') @section('content')

Appointments

Manage and schedule appointments

Filters

@if(isset($lead_statistics) && $lead_statistics->isNotEmpty())

Lead Statistics by Sales Executives

@foreach($lead_statistics as $stat)

{{ $stat['user']->first_name }} {{ $stat['user']->last_name }}

{{ $stat['user']->email }}

Total Leads
{{ $stat['total_leads'] }}
Converted
{{ $stat['converted_leads'] }}
Qualified
{{ $stat['qualified_leads'] }}
Conversion Rate
{{ $stat['conversion_rate'] }}%
@endforeach
@endif

Appointments

{{ $appointments->total() }} total appointments
@forelse($appointments as $appointment) @empty @endforelse
ID Client Contact Person Email Phone Purpose Date Time Created By Status Actions
{{ $appointment->id }} {{ $appointment->client ? $appointment->client->name : 'N/A' }} {{ $appointment->contact_person }} {{ $appointment->email }} {{ $appointment->phone_number }} {{ $appointment->purpose_of_meeting }} {{ \Carbon\Carbon::parse($appointment->appointment_date)->format('M d, Y') }} {{ \Carbon\Carbon::parse($appointment->appointment_time)->format('h:i A') }} @if($appointment->createdBy)
{{ $appointment->createdBy->first_name }} {{ $appointment->createdBy->last_name }}
@else N/A @endif
{{ ucfirst($appointment->status) }}
@csrf @method('DELETE')
No appointments found
@if($appointments->hasPages())
{{ $appointments->links() }}
@endif
@endsection