@extends('layouts.base') @section('content')

Détails de la carte {{ $carte->NumeroAutorisation }} du véhicule {{ $carte->vehicule->Immatriculation }}

{{ QrCode::size(400)->backgroundColor(0, 0, 0, 0)->generate($carte->CodeQR) }}

Nom du beneficiaire: {{ $carte->vehicule->beneficiaire->RaisonSociale }}


Numero d'autorisation
{{ $carte->NumeroAutorisation }}
Date Délivrance:
{{ \Carbon\Carbon::parse($carte->DateDelivrance)->format('d/m/Y') }}
Date Expiration
{{ \Carbon\Carbon::parse($carte->DateExpiration)->format('d/m/Y') }}
LES PORTES D'ACCESS(ZONES)
@if (!is_null($carte->Portes) && !empty(json_decode($carte->Portes))) @foreach (json_decode($carte->Portes) as $porteId)
@php $porte = App\Models\Porte::find($porteId); @endphp

{{ $porte->CodePorte }} ({{ $porte->zone->NomZone }})

@endforeach @else
Pas de porte d'accès défini pour cette carte, par defaut la carte est inactive même si son statut est activé
@endif

Priére de garder active la carte pour permettre au vehicule d'acceder au parc

@endsection @section('js') @endsection