@extends('layouts.app') @section('content')
← Retour

{{ $contract->name }}

@if(auth()->user()->isManager()) Modifier @endif
Fournisseur: {{ $contract->provider }}
Référence: {{ $contract->reference ?? 'N/A' }}
Commune: @if($contract->municipality) {{ $contract->municipality->name }} ({{ $contract->municipality->zip_code }}) @else Global / Agglomération @endif
Type: {{ $contract->type }}
Status: {{ $contract->status }}
Date Début: {{ $contract->start_date->format('d/m/Y') }}
Date Fin: {{ $contract->end_date ? $contract->end_date->format('d/m/Y') : 'Indéfinie' }}
Montant: {{ number_format($contract->amount, 2) }} {{ $contract->currency }}
@if($contract->notes)
Notes:

{{ $contract->notes }}

@endif
@if($contract->meta->isNotEmpty())
Détails Techniques
    @foreach($contract->meta as $meta)
  • @if($meta->key == 'm365_license_level') Niveau Licence M365 @elseif($meta->key == 'm365_quantity') Nombre de Licences @else {{ $meta->key }} @endif {{ $meta->value }}
  • @endforeach
@endif
Documents
@if($contract->documents->isEmpty())

Aucun document.

@else
    @foreach($contract->documents as $doc)
  • {{ $doc->filename }} @if(auth()->id() == $doc->uploaded_by || auth()->user()->isManager())
    @csrf @method('DELETE')
    @endif
  • @endforeach
@endif @if(auth()->user()->isManager())
@csrf
@endif
@endsection