@extends('layouts.base') @section('content') @section('breadcrumb') @endsection
Réservations

@if($reservations->total() > 0) {{ $reservations->total() }} réservation{{ $reservations->total() > 1 ? 's' : '' }} @else Réservations @endif - {{ $application->name }}

Gestion des réservations clients
@if($reservations->isEmpty())

Aucune réservation

Aucune réservation n'a été créée pour cette application.

@else
@foreach($reservations as $reservation) @php $client = $reservation->client ?? $reservation->option?->client; $initials = $client ? strtoupper(substr($client->firstname ?? '', 0, 1) . substr($client->lastname ?? '', 0, 1)) : ''; @endphp @endforeach
Client Email Téléphone Programme Lot Conseiller Workflow Date de création
@if($initials) {{ $initials }} @endif @if($client) {{ $client->firstname }} {{ $client->lastname }} @else - @endif
@if($client && $client->email) {{ $client->email }} @else - @endif @if($client && $client->phones && $client->phones->first()) {{ format_phone_display($client->phones->first()->value ?? null) }} @else - @endif @if($reservation->option && $reservation->option->product && $reservation->option->product->program) {{ $reservation->option->product->program->name }} @else - @endif @if($reservation->option && $reservation->option->product) {{ $reservation->option->product->number }} @if($reservation->option->product->type)
{{ $reservation->option->product->type }} @endif @else - @endif
@if($reservation->option && $reservation->option->user) {{ $reservation->option->user->firstname }} {{ $reservation->option->user->lastname }} @else - @endif @if($reservation->workflow) {{ $reservation->workflow->name ?? 'Workflow #' . $reservation->workflow->id }} @else Aucun @endif @if($reservation->created_at) {{ $reservation->created_at->format('d/m/Y H:i') }} @else - @endif Voir
@if($reservations->hasPages())
Affichage de {{ $reservations->firstItem() }} à {{ $reservations->lastItem() }} sur {{ $reservations->total() }} résultat{{ $reservations->total() > 1 ? 's' : '' }}
@endif @endif
@push('scripts') @endpush @endsection