@extends('layouts.master') @section('title', 'Compléter l\'engagement') @section('content')
{{-- ===================================================== HEADER ====================================================== --}} {{-- ===================================================== FORMULAIRE ====================================================== --}}
@csrf @method('PUT') {{-- ===================================================== INFORMATIONS VALIDÉES ====================================================== --}}
Informations validées
Lecture seule
Ces informations ont déjà été validées. Elles ne peuvent plus être modifiées.
{{-- ================================================= INFORMATIONS GENERALES ================================================== --}}
Informations générales
{{-- NUMERO BR --}}
{{-- DATE BESOIN --}}
{{-- RESPONSABLE --}}
{{-- DIRECTION --}}
{{-- CENTRE RESPONSABILITE --}}
{{-- ================================================= DETAILS ENGAGEMENT ================================================== --}}
Détails de la dépense
@php $totalGeneral = 0; @endphp @forelse($engagement->engagementdetails as $detail) @php $nombre = (float) ($detail->nombre ?? 0); $quantite = (float) ($detail->quantite ?? 0); $coutUnitaire = (float) ($detail->cout_unitaire ?? 0); $montantLigne = $nombre * $quantite * $coutUnitaire; $totalGeneral += $montantLigne; @endphp {{-- =============================== DESIGNATION ================================ --}} {{-- =============================== DETAILS ================================ --}} {{-- =============================== NOMBRE ================================ --}} {{-- =============================== QUANTITE ================================ --}} {{-- =============================== COUT UNITAIRE ================================ --}} {{-- =============================== MONTANT LIGNE ================================ --}} @empty @endforelse {{-- ================================================= TOTAL GENERAL ================================================== --}} @if($engagement->engagementdetails->count() > 0) @endif
Désignation Détails Nombre Quantité Coût unitaire Montant
Aucun détail disponible.
TOTAL GÉNÉRAL {{ number_format($totalGeneral, 0, ',', ' ') }} FCFA
{{-- ===================================================== INFORMATIONS À COMPLÉTER ====================================================== --}}
Informations à compléter
À renseigner
Les informations ci-dessous doivent être renseignées par l'Appro après la validation du Contrôleur.
{{-- ===================================================== RÉFÉRENCES ADMINISTRATIVES ====================================================== --}}
{{-- BON DE RÉQUISITION --}}
@error('bon_requisition_reference') {{ $message }} @enderror
{{-- FACTURE --}}
@error('facture_reference') {{ $message }} @enderror
{{-- BON DE LIVRAISON --}}
@error('bon_livraison_reference') {{ $message }} @enderror
{{-- ===================================================== FOURNISSEUR + MONTANT ====================================================== --}}
{{-- FOURNISSEUR --}} {{-- ===================================================== FOURNISSEUR ===================================================== --}}
@error('fournisseur_id') {{ $message }} @enderror
{{-- MONTANT DÉFINITIF --}}
FCFA
@error('montant_definitif') {{ $message }} @enderror
{{-- ===================================================== BOUTONS ====================================================== --}}
@endsection