@php $status = [ '1' => [ 'title' => 'Diponible', 'class' => 'text-primary', ], '2' => [ 'title' => 'text-danger', 'class' => ' badge-success', ], ]; $typePart = [ '1' => 'CNI', '2' => 'PASSSPORT', ]; @endphp

{{ mb_strtoupper($car->brand->name) . ' ' . mb_strtoupper($car->modele->name) }}

@if (session('success'))
{{ session('success') }}
@endif
Prix du véhicule / Jour

{{ number_format($car->price, 0, ',', ' ') . ' XOF' }}

{{ mb_strtoupper($car->brand->name) . ' ' . mb_strtoupper($car->modele->name) }}

Spécifications techniques

Marque {{ ucfirst($car->brand->name) }}
Modèle {{ ucfirst($car->modele->name) }}
Nombre de place {{ $car->number_of_places }} Place(s)
Type de véhicule {{ ucfirst($car->cartype->name) }}
Transmission {{ ucfirst($car->transmissiontype->name) }}
Type de carburant {{ ucfirst($car->fueltype->name) }}
Couleur {{ $car->color->name }}
Disponibilité {{ $status[$car->status]['title'] }}
{{--
@csrf
Prénoms
Nom
Téléphone
Adresse
Type de pièce
Numéro de pièce
Numéro de permis
Email
Date de début
Date de fin
--}}
@csrf
{{-- --}}
@if ($errors->has('start'))
{{ $errors->first('start') }}
@endif
@if ($errors->has('end'))
{{ $errors->first('end') }}
@endif
@if ($errors->has('first_name'))
{{ $errors->first('first_name') }}
@endif
@if ($errors->has('last_name'))
{{ $errors->first('last_name') }}
@endif
@if ($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
@if ($errors->has('address'))
{{ $errors->first('address') }}
@endif
@if ($errors->has('type_part'))
{{ $errors->first('type_part') }}
@endif
@if ($errors->has('number_part'))
{{ $errors->first('number_part') }}
@endif
{{--
--}}
@if ($car->status === 1)
@endif