@extends('layouts.index') @section('css') @endsection @section("contents")

Commande #{{ $order->code }} avec status
{{ $order->status }}

{{--

La liste des commandes éffectuées

--}}

Commande

{{ $order->code }}

Date

@php $date = explode(" ",$order->created_at); @endphp {{ $date[0]." à ".$date[1] }}

Total

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

Reste à Payer

F CFA {{ number_format($order->reste_amount,2,',',' '); }}
Commande # {{ $order->code }} détail

Identité du client

{{ $order->client->firstname." ".$order->client->lastname }}

Pays : {{ config("app.countriesViews")[$order->client->company_country] }}

Site : {{ $order->client->site->name }}

@if (isAdmin())

Contact : {{ $order->client->phone }} , {{ $order->client->email }}

@endif
@php $tags = $order->client->tag @endphp @if (count($tags)>0)
Tags :
@endif @foreach ($tags as $tag)
{{ $tag->name }}
@endforeach
Client dépuis {{ $order->client->created_at->diffForHumans(); }}

Article de la commande

@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,',',' '); }}
Facturation de la Commande # {{ $order->code }}
@php $listeCol = $order->reste_amount === 0 ? "col-md-12 col-12 " : "col-md-6"; $invoices = $order->invoices; $totalInvoice = count($invoices); $hasInvoice = ($totalInvoice>0); $shouldPay = $order->reste_amount != 0; $payCol = !$hasInvoice ? "col-md-12 col-12":"col-md-6"; $count = 0; @endphp
@if ($hasInvoice)

Liste des factures appliquées

@foreach ($invoices as $invoice) @php $count++ @endphp
{{ $count }}/{{$totalInvoice}}
@php $url = route("App@Commercial#InvoiceView",["idfacture"=>$invoice->code]); $urlPrinte = route("App@Commercial#invoicePrinter",["idfacture"=>$invoice->code]); $urlguest = route("App@Commercial#InvoiceViewGuest",["idfacture"=>$invoice->code]); @endphp
{{ $invoice->code }}

créé {{ $invoice->created_at->diffForHumans() }}

@endforeach
@endif @if ($shouldPay)

Espace de règlement

Veuillez selectionner la méthode de paiement
Veuillez renseigner ce champs
@endif
@endsection @section('js') @endsection()