@extends('template.layoutAdmin', ['activeButton'=>'informeGasto']) @section('cabecera')

@endsection @section('style') @endsection @section('title') @endsection @section('contenido')
@if($totalTotal >= 0)
{{trans('informegastos.ganancias')}}:
{{App\Helpers\monedaH::getCurrentSimbol()}} {{ $totalTotal }} @endif @if($totalTotal < 0)
{{trans('informegastos.perdidas')}}:
{{App\Helpers\monedaH::getCurrentSimbol()}} {{ $totalTotal }} @endif

{{trans('informegastos.ventas')}}


@foreach ($ventas as $currentVenta) @endforeach
{{trans('informegastos.referencia')}} {{trans('informegastos.propina')}} {{trans('informegastos.valorDelDomicilio')}} {{trans('informegastos.fechaDelPedido')}} {{trans('informegastos.total')}}
{{$currentVenta->referencia}} {{App\Helpers\monedaH::getCurrentSimbol()}} {{$currentVenta->valorPropina ?? 0}} {{App\Helpers\monedaH::getCurrentSimbol()}} {{$currentVenta->valorDomicilio}} {{$currentVenta->created_at}} {{App\Helpers\monedaH::getCurrentSimbol()}} {{$currentVenta->total}}

{{trans('informegastos.totalDeVentas')}}:
{{App\Helpers\monedaH::getCurrentSimbol()}} {{ $ventasTotal }}

{{trans('informegastos.costos')}}


@foreach ($costos as $costo) @endforeach
{{trans('informegastos.referencia')}} {{trans('informegastos.descripcion')}} {{trans('informegastos.fecha')}} {{trans('informegastos.total')}}
{{$costo->referencia}} {{$costo->descripcion}} {{$costo->fecha}} {{App\Helpers\monedaH::getCurrentSimbol()}} {{$costo->valorTotal}}

{{trans('informegastos.totalDeCostos')}}:
{{App\Helpers\monedaH::getCurrentSimbol()}} {{ $costosTotal }}

{{trans('informegastos.gastos')}}


@foreach ($gastos as $currentGasto) @endforeach
{{trans('informegastos.nombre')}} {{trans('informegastos.descripcion')}} {{trans('informegastos.fecha')}} {{trans('informegastos.total')}}
{{ $currentGasto->nombre }} {{ $currentGasto->descripcion }} {{ $currentGasto->fecha }} {{App\Helpers\monedaH::getCurrentSimbol()}} {{ $currentGasto->total }}

{{trans('informegastos.totalDeGastos')}}:
{{App\Helpers\monedaH::getCurrentSimbol()}} {{ $gastosTotal }}
@endsection @section('js') @endsection