Principe azul

CUENTAS X COBRAR


FECHA DE INICIO: {{SpanishDate(strtotime($data['date']['startDate']))}}
FECHA DE FINAL: {{SpanishDate(strtotime($data['date']['endDate']))}}
CUENTAS X COBRAR $ {{number_format($data['order']->sum('total') - $data['order']->sum('totalPaid'),2,'.','')}}
FACTURAS PENDIENTES {{count($data['order'])}}

@foreach($data['order'] as $index=>$order) @endforeach
Orden Cliente Teléfono Fecha de Compra productos Total Compra Abono Saldo
{{$order->id}} {{$order->client->name}} {{$order->client->phone}} {{SpanishDate(strtotime($order->created_at))}} @foreach($order->products as $i=>$product) {{$product->name}} {{count($order->products)>$i+1?' - ':''}} @endforeach {{number_format($order->total,2,'.','')}} {{number_format($order->totalPaid,2,'.','')}} {{number_format(($order->total - $order->totalPaid),2,'.','')}}
@section('content') @endsection