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

FACTURAS

@php $total = 0; @endphp @foreach ($data as $fac) @php $total += $fac->total; @endphp @endforeach
RECIBO FECHA NOMBRE NIT DIRECCION DESCUENTO TOTAL
{{$fac->id}} {{$fac->created_at}} {{$fac->nombre}} {{$fac->nit}} {{$fac->direccion}} Q. {{number_format($fac->descuento, 2)}} Q. {{number_format($fac->total, 2)}}

TOTAL: Q. {{number_format($total, 2)}}

@endsection