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

Lots

Gérez les lots du programme {{ $program->name }}

{{ $program->name }}

{{ $program->description ?: 'Aucune description' }}

@if($program->is_active) Programme actif @else Programme inactif @endif
@forelse($lots as $lot) @empty @endforelse
Lot Dispositifs fiscaux État Status Prix Actions
{{ $lot->number }}
Lot {{ $lot->number }}
@php try { $lotTypeLabel = $lot->type ? $lot->type->label() : null; } catch (\Throwable $e) { $lotTypeLabel = null; } @endphp @if($lotTypeLabel) {{ $lotTypeLabel }} @else {{ $lot->slug }} @endif
@if($lot->fiscalites && $lot->fiscalites->count() > 0)
@foreach($lot->fiscalites as $fiscalite) {{ $fiscalite->type->label() }} @endforeach
@else Aucun dispositif @endif
{{ $lot->current_state->label() }} @if($lot->is_active) Actif @else Inactif @endif @if($lot->prices && $lot->prices->count() > 0) @php $firstPrice = $lot->prices->first(); @endphp @if($firstPrice->type_enum) {{ $firstPrice->type_enum->label() }} @endif {{ number_format($firstPrice->value, 0, ',', ' ') }} € @if($lot->prices->count() > 1)
+{{ $lot->prices->count() - 1 }} autre(s) @endif @else Non défini @endif
Aucun lot trouvé

Les lots de ce programme apparaîtront ici.

@endsection