{{-- extend layout --}} @extends('layouts.contentLayoutMaster') {{-- page title --}} @section('title','Ordenes de compra') {{-- vendor styles --}} @section('vendor-style') @endsection {{-- page styles --}} @section('page-style') @endsection {{-- page content --}} @section('content')
| Fecha de Creación | {{--Productos | --}}Valor Unit | Cantidad | Proveedor | Total | Estado | Acción | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ date('d-m-Y H:i a', strtotime($purchase->creationDate)) }} | {{--{{ count($purchase->products) }} | --}}$ {{number_format($purchase->products[0]->price,0,',','.')}} | {{ $purchase->products[0]->amount }} | @foreach ($suppliers as $supplier) @if($supplier->uuidKey === $purchase->supplierUuidKey) {{ $supplier->name }} @break @endif @endforeach | $ {{number_format($purchase->totalToPay,0,',','.')}} | {{ ($purchase->state == 0) ? 'Pendiente' : (($purchase->state == 1) ? 'Cancelada' : 'Entregada') }} |