@extends('admin.layouts.admin') @section('title', 'Détails du rendez-vous - Admin KONTIXX') @section('page-title', 'Détails du rendez-vous') @section('page-description', 'Informations complètes sur le rendez-vous') @section('content')
{{-- HEADER AVEC BOUTON RETOUR --}}
Retour à la liste
{{-- INFORMATIONS CLIENT --}}
{{ strtoupper(substr($appointment->full_name, 0, 1)) }}

Informations client

Détails du contact

Nom complet

{{ $appointment->full_name }}

Date de demande

{{ $appointment->created_at->locale('fr')->isoFormat('dddd D MMMM YYYY à HH:mm') }}

{{-- DÉTAILS DU RENDEZ-VOUS --}}

Détails du rendez-vous

Informations sur la demande

Type de rendez-vous

{{ ucfirst($appointment->appointment_type) }}

{{ ucfirst($appointment->appointment_format) }}
@if($appointment->project_type)

Type de projet

{{ ucfirst($appointment->project_type) }}

@endif @php $slot = \App\Models\AppointmentSlot::where('appointment_id', $appointment->id)->first(); @endphp @if($slot)

Créneau sélectionné

{{ $slot->date->locale('fr')->isoFormat('dddd D MMMM YYYY') }}

{{ \Carbon\Carbon::createFromFormat('H:i:s', $slot->start_time)->format('H:i') }} - {{ \Carbon\Carbon::createFromFormat('H:i:s', $slot->end_time)->format('H:i') }}

@endif

Statut

{{ ucfirst($appointment->status) }}
{{-- MESSAGE --}}

Message

Message du client

{{ $appointment->message ?: 'Aucun message' }}

{{-- ACTIONS --}}

Actions

@if($appointment->status === 'pending') @else

Ce rendez-vous a déjà été traité.

Statut: {{ ucfirst($appointment->status) }}

@endif
@if($appointment->status === 'pending') {{-- MODAL ACCEPTER RENDEZ-VOUS --}} {{-- MODAL REFUSER RENDEZ-VOUS --}} @push('scripts') @endpush @endif @endsection