@if (request()->is('*-pdf')) @php $company = \App\Models\Company::all()->last() @endphp
{{ $company->address }}
@php $phones = collect(); $company->phone1 ? $phones->push($company->phone1) : ''; $company->phone2 ? $phones->push($company->phone2) : ''; $company->phone3 ? $phones->push($company->phone3) : ''; $company->phone4 ? $phones->push($company->phone4) : ''; @endphp
Tél : {{ $phones->join(', ') }}
E-mail: {{ $company->email1 ?? '' }}

Beauty Care & Fashion


@endif

Liste des Commandes


@foreach ($orders as $order) @endforeach
Date Numéro de Commande Client Produits Paiement Sous-Total Livraison Total Statut
{{ \Carbon\Carbon::create($order->created_at)->isoFormat('ll') }}
{{ $order->order_number ?? '' }}
{{ $order->user_id ? $order->first_name . ' ' . $order->last_name : '' }}
@php $products = json_decode($order->cart['products_json']); @endphp
@foreach ($products as $key => $product) {{ $product->quantity }} {{ App\Models\Product::where('code', $key)->first()->unitMeasures->first()->unit }}(s) de {{ $product->name }},
@endforeach
{{ isset($order->payment_method_id) ? App\Models\PaymentMethod::find($order->payment_method_id)->method : null }}
{{ $order->sub_total }} FCFA
{{ $order->total_amount - $order->sub_total }} FCFA
{{ $order->total_amount }} FCFA
{{ $order->status }}

Liste générée le {{ \Carbon\Carbon::now()->isoFormat('lll') }}