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

Detalles del cierre

{{$cierre->user->name}}
{{-- widgets --}}

Ventas

$ {{number_format($total_ventas)}}

Gastos

$ {{number_format($total_gastos)}}

@if (Auth::user()->is_admin == 'Si')

Costos aproximados

$ {{number_format($total_costos)}}

Ganancias aproximadas

$ {{number_format($total_ganancias)}}

@endif
@foreach($widgets as $widget)

{{$widget->titulo}}

@if($widget->type_valor == 'precio') $ {{number_format($widget->valor)}} @else {{$widget->valor}} @endif

@endforeach

Ticket proedio de venta

$ {{number_format($total_ventas / ($ventas->count() || 1))}}

@foreach($ventasUsers as $ventaUser)

Total Ventas {{$ventaUser->user->name}}

$ {{number_format($ventaUser->total_user)}}

@endforeach
@if($ventasTables->count() > 0)
@foreach($ventasTables as $ventasTable)

{{$ventasTable->mesa->titulo}}

$ {{number_format($ventasTable->total_mesa)}}

@endforeach
@endif {{-- Grafico ventas --}}
Ventas / Gastos
Ventas / Gastos / Costos / Ganancias
Gastos por tipo
Productos vendidos - por valor
Productos vendidos - por cantidades
{{-- grafico de ventas --}}
Picos de ventas / Picos de gastos
{{-- detalles ventas y gastos --}}
@if(Auth::user()->is_admin == 'Si') @endif @foreach($ventas as $venta) @if(Auth::user()->is_admin == 'Si') @endif @endforeach
ID Usuario N° productos TotalCosto Ganancias AproxFecha Acción
#{{$venta->id}}
{{$venta->user->name}}
{{$venta->number_items()}} $ {{number_format($venta->total)}}$ {{number_format($venta->costo())}} $ {{number_format($venta->ganancia())}}{{date_format(date_create($venta->created_at), 'd/m/Y h:i A')}}
@if($venta->id_cierre == null && Auth::user()->id == $venta->id_user) @endif
@foreach($gastos as $gasto) @endforeach
ID Usuario Valor Caja Tipo Proveedor Fecha Acciones
#{{$gasto->id}}
{{$gasto->user->name}}
$ {{number_format($gasto->valor)}} {{$gasto->caja->nombre}} {{$gasto->tipo->titulo}} {{($gasto->id_proveedor != null) ? $gasto->proveedor->nombre : 'N/A'}} {{date_format(date_create($gasto->created_at),'d/m/Y h:i A')}}
@if($gasto->id_cierre == null && Auth::user()->id == $gasto->id_user) @endif
{{-- Movimientos de caja --}}
@foreach($caja->movimientos_cierre($id) as $mov) @endforeach
ID Usuario Valor Método Tipo Manual Fecha Acción
#{{$mov->id}}
{{$mov->user->name}}
${{number_format($mov->valor)}} {{$mov->metodo->titulo}} @if($mov->tipo_mov == 1)

Ingreso

@else

Egreso

@endif
{{ $mov->tipo == 1 ? 'Si' : 'No' }} {{ date_format(date_create($mov->created_at), 'd/m/Y H:i') }}
@foreach($caja2->movimientos_cierre($id) as $mov) @endforeach
ID Usuario Valor Método Tipo Manual Fecha Acción
#{{$mov->id}}
{{$mov->user->name}}
${{number_format($mov->valor)}} {{$mov->metodo->titulo}} @if($mov->tipo_mov == 1)

Ingreso

@else

Egreso

@endif
{{ $mov->tipo == 1 ? 'Si' : 'No' }} {{ date_format(date_create($mov->created_at), 'd/m/Y H:i') }}
@endsection @section('scripts') @endsection