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

Facturas {{ now() }}

    @foreach($orders as $order)
  • Transacción #{{ !is_null($order->invoice)?$order->invoice->transaction->id:'sin transaccion' }}

    {{ $order->created_at }}
    {{ $order->paymentMethod->name }}
    @if($order->sent) Enviado @else Por enviar @endif

    @foreach($order->details as $detail) @endforeach
    Nombre Precio Cantidad Total
    {{ $detail->product->name }} @convert($detail->product->price) {{ $detail->quantity }} @convert($detail->product->price * $detail->quantity)
    $@convert($order->total)
  • @endforeach
@endsection