@extends('layouts.app') @section('content')
Date | Code | Fournisseur | Produits | Mode | TVA | Total | Statut | |
---|---|---|---|---|---|---|---|---|
{{ \Carbon\Carbon::create($command->date)->isoFormat('ll') }}
|
{{ ($command->code)?$command->code:"" }}
|
{{ ($command->supplier_id)?$command->supplier->name:"" }}
|
@php
$products = json_decode($command->products);
@endphp
@isset($products)
@foreach($products as $product)
{{ $product->command_quantity }} {{ json_decode($product->command_measure)->unit }}(s) de {{ $product->product }},
@endforeach @endif |
{{ (isset($command->paymentMethod))?$command->paymentMethod->method:null }}
|
{{ $command->tva }}
|
{{ $command->total }} FCFA
|
{{ $command->state->name }}
|
@php $command->paymentMethod /* utile pour pouvoir recuperer payment_method dans data-command dans faire de merge */ @endphp
|