@extends('layouts.app') @section('content')
@csrf @method('PUT')
@if(Auth::user()->role->name == 'Administrateur') @if($magasins->count() > 1)
@error('magasin_id'){{ $message }}@enderror
@else @endif @endif @if(Auth::user()->role->name !== 'Administrateur')
@endif
@error('fournisseur_id'){{ $message }}@enderror
@foreach($purchase->details as $detail) @endforeach
Nom Prix Quantité Montant Action
{{ $detail->product->name }} {{ $detail->price }} FCFA {{ $detail->quantity * $detail->price }} FCFA
Montant Total : 0 FCFA
@endsection