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

FACTURAS

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

PORCENTAJE: {{$por}}%

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

@php $aprox = ($por / 100) * $total; @endphp

APROXIMADO A PAGAR: Q. {{number_format($aprox, 2)}}

@endsection