@extends('layouts.app') @section('content')
Generar informe por rango de fechas


@if($informes->count() > 0)
@foreach($informes as $informe) @endforeach
ID Usuario N° Ventas Total Ventas Total Gastos Fecha Acciones
#{{$informe->id}}
{{$informe->user->name}}
{{$informe->ventas->count()}} $ {{number_format($informe->ventas->sum('total'))}} $ {{number_format($informe->gastos->sum('valor'))}} {{date_format($informe->created_at, 'd/m/Y h:i A')}}
{{$informes->links()}}
@else
No hay informes registrados.

@endif
@endsection @section('scripts') @endsection