@extends('layouts.app') @section('content')
Aplicaciones

@foreach($orders as $order)
T.ID Cédula Nombres Apellidos Tipo envio Dirección Fecha órden Valor Imp. Total Enviado
{{ !is_null($order->invoice)?$order->invoice->transaction_id:'sin transacción' }} {{ $order->getPerson()->dni }} {{ $order->getPerson()->getFullName() }} {{ $order->getPerson()->getFullLastName() }} {{ $order->getTypeShippingText() }} @if(!empty($order->address)) {{ $order->address->address }}
{{ $order->address->detail }}
ZIP: {{ $order->address->postal_code }}
{{ $order->address->state->name }},{{ $order->address->country->name }} @else - @endif @if($order->isShipment()) @endif
{{ $order->created_at }} $@convert($order->amount) $@convert($order->tax) $@convert($order->total) @if(!(is_null($order->invoice) || (!is_null($order->invoice) && !is_null($order->invoice->transaction->annulment)))) @can('sent,App\Src\ProductStructure\Order')
sent ? ' checked' : '' }}>
@endcan @endif
Observación Pago
{{ !empty($order->getObservation())?$order->getObservation():"-" }}
Tipo Pago: {{ $order->paymentMethod->name }}
Productos @foreach($order->details as $detail) @endforeach
Id Sku Nombre Precio Cantidad Total
{{ !is_null($detail->product)?$detail->product->id:'-' }} {{ !is_null($detail->product)?$detail->product->sku:'-' }} {{ !is_null($detail->product)?$detail->product->name:'-' }} @convert(!is_null($detail->product)?$detail->product->price:0) {{ $detail->quantity }} @convert(!is_null($detail->product)?($detail->product->price * $detail->quantity):0)
@endforeach
@endsection