@extends('layouts.app') @section('content')
Date | Code Sortie | Client | Produits | TypeSortie | Paiement | TVA | Total | Statut | |
---|---|---|---|---|---|---|---|---|---|
{{ \Carbon\Carbon::create($sell->date)->isoFormat('ll') }}
|
{{ ($sell->code)?$sell->code:"" }}
|
{{ ($sell->customer_id)?$sell->customer->name . " ". $sell->customer->phone:"" }}
{!! ($sell->customer_id)?$sell->customer->shipping_address:"" !!}
|
@php
$achats = json_decode($sell->achats);
@endphp
@isset($achats)
@foreach($achats as $achat)
{{ $achat->sell_quantity }}
{{ ($achat->sell_measure->unit)??json_decode($achat->sell_measure)->unit }}(s) de
{{ ($achat->product->name)??json_decode($achat->product)->name }},
@endforeach @endif |
{{ $sell->outType?->name }} |
{{ (isset($sell->paymentMethod))?$sell->paymentMethod->method:null }}
|
{{ $sell->tva }}
|
{{ $sell->total }} FCFA
|
{{ $sell->state->name }}
|
@php $sell->paymentMethod /* utile pour pouvoir recuperer payment_method dans data-sell dans faire de merge */ @endphp
|