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

Detalles del gasto

ID: #{{$gasto->id}}
@if($gasto->id_cierre != null) @endif @if($gasto->fecha_gasto != null)
@if($gasto->id_proveedor != null) @endif
@endif @if($gasto->fecha_gasto != null)
@endif
@if($gasto->detalles->count() > 0)
@endif @foreach($gasto->movimientos as $movimiento)
@endforeach
{{$gasto->user->name}}

@if($gasto->detalles->count() > 0)

Productos comprados

@foreach($gasto->detalles as $detalle) @endforeach
ID Producto Cantidad comprada Valor pagado Precio costo Acciones
#{{$detalle->producto->id}}
{{$detalle->producto->nombre}}
{{$detalle->cantidad}} $ {{number_format($detalle->valor * $detalle->cantidad)}} $ {{number_format($detalle->valor)}}
@endif
@endsection @section('scripts') @endsection