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

@if($gastos->count() > 0)
@foreach($gastos as $gasto) @endforeach
ID Valor Caja Tipo Usuario Fecha ID cierre Acciones
#{{$gasto->id}} $ {{number_format($gasto->valor)}} {{$gasto->caja->nombre}} {{$gasto->tipo->titulo}}
{{$gasto->user->name}}
{{date_format(date_create($gasto->created_at),'d/m/Y h:i A')}} @if($gasto->id_cierre != null) #{{$gasto->id_cierre}} @else N/A @endif
{{$gastos->appends(['search' => $search])->links()}}
@else
No hay gastos registrados.

Registrar mi primer gasto
@endif
@endsection