@extends('admin.layouts.default') @section('content')
@if( isCurrent('admin.devis')) Liste des devis @else Liste des commandes @endif
@if( isCurrent('admin.devis')) @else @endif @foreach($cmd as $c) @if( isCurrent('admin.devis')) @else @php $date_achat = \App\Models\Achat::where('commande_id', $c->id)->first(); @endphp @endif @endforeach
Id Numéro du devisNuméro du commandeNuméro de projet / consultation Nom du client Email du client Date de commande Montant Statut Action
{{$c->id}} {{$c->reference}} {{$c->projet_id }} {{$c->consultation_id}} {{$c->user->prenom ?? '' }} {{$c->user->nom ?? ''}} {{$c->user->email ?? ''}}{{$c->created_at}}{{$date_achat->created_at ?? '---'}}{{ ($c->total??$c->total == 0) ? $c->total.' €' :'---' }} {{ $c->statut }}
@include('admin.partials.modals.deleteDevis', $c)
@endsection