@extends('layouts.index') @section("css") @endsection @section('contents') @php $order = $invoice->invoiceOrder->order; $client = $order->client; // $url = route("App@Commercial#InvoiceView",["idfacture"=>$invoice->code]); $url = route("App@Commercial#InvoiceViewGuest",["idfacture"=>$invoice->code]); $print = route("App@Commercial#invoicePrinter",["idfacture"=>$invoice->code]) @endphp
Chers client {{ $client->firstname." ".$client->lastname }},
Ceci est le reçu d'un règlement de F CFA {{ number_format($invoice->payment_amount,2,',',' '); }} via {{ $invoice->paymentMethod->name }} de votre commande {{ $order->code }}
N° de Facturation {{ $invoice->code }}
Date de Facturation {{ $invoice->created_at->toDateTimeString() }}
Client {{ $client->firstname." ".$client->lastname }}

{{ $order->client->phone }}
{{ $order->client->email }}

Prestataire {{env("INVOICE_NAME")}}

{{env("INVOICE_NUMBER_BJ")}}
{{env("INVOICE_NUMBER_TG")}}
{{env("INVOICE_NUMBER_GN")}}
{{ env("INVOICE_MAIL") }}

@foreach ($order->orderItem as $item) @endforeach
code libelle Qte Prix Appliiqué Prix Montant
{{ $item->article->code }} {{ $item->article->name }} {{ $item->quantity }} {{ config("app.priceView")[$item->price_type] }} F CFA {{ number_format($item->price,2,',',' '); }} F CFA {{ number_format(($item->price * $item->quantity),2,',',' '); }}
{!! qrCodeImage($url,90) !!}

Sous Total : F CFA {{ number_format($order->total_amount,2,',',' '); }}

TVA (10%) : 0.00 Fcfa

Total : F CFA {{ number_format($order->total_amount,2,',',' '); }}

Payer : F CFA {{ number_format($invoice->payment_amount,2,',',' '); }}

Reste à Payer : F CFA {{ number_format($invoice->reste_amount,2,',',' '); }}

Notes Le client peut scanner ce code Qq ci dessus pour avoir une copie dans son téléphone

@endsection