@extends('layouts.app') @section('content')
Caja Activa
@if ($count_active == '0')

Sin Cajas Activas

Usted no posee cajas activas para ser administradas, proceda a realizar la apertura de una nueva caja.

@if (auth()->user()->hasPermissionTo('open-caja-chicaCaja-chica')) Realizar Apertura de Caja @endif
@else
@if ($mensaje == '') @else
{{ $mensaje }}
@endif
{{ $data->caja_nombre }}
Fecha de Apertura: {{ $data->caja_chica_fecha_apertura }}
volver {{-- validate if caja is open and user has role administratos activate caja --}} @if ( $data->caja_chica_estado == 2 && auth()->user()->hasRole('Administrator')) @endif
¿Abierta? @if ($data->caja_chica_open == 1) SI
@else NO
@endif
Estado: {{-- @dump(auth()->user()->roles->first()->name) --}} @if ($data->caja_chica_estado == '0') Inactiva
@elseif ($data->caja_chica_estado == '1') Activa
@elseif ($data->caja_chica_estado == '2') PRE-CIERRE
@else CERRADA
@endif
Apertura realizada por: {{ $data->username }}
Email {{ $data->email }}

Saldo:
₡{{ number_format($data->caja_chica_saldo_final, 2, '.', ',') }}

Consecutivo: {{ isset($data->caja_chica_consecutivo) ? $data->caja_chica_consecutivo : $data->caja_chica_id }}

Porcentaje de Reintegro: {{ $data->caja_porcentaje_reintegro }}%

@switch($data->caja_chica_estado) @case(2)

CAJA EN PROCESO DE PRE-CIERRE

@break @endswitch {!! Form::open(['url' => 'caja/activa', 'method' => 'get', 'id' => 'frmFiltros']) !!} {!! Form::close() !!}
@if ($data->caja_chica_estado == '0') @elseif($data->caja_chica_estado == '2') {!! Form::open(['url' => 'caja/activa/nuevo-egreso', 'method' => 'POST', 'role' => 'form', 'id' => 'frmEgreso']) !!} {!! Form::close() !!} @elseif($data->caja_chica_estado == '3') @else {!! Form::open(['url' => 'caja/activa/nuevo-egreso', 'method' => 'POST', 'role' => 'form', 'id' => 'frmEgreso']) !!} {!! Form::close() !!} @if ($countot > 0) @else Inactivar @endif @endif
@if (count($details) > 0) @foreach ($details as $key => $item) @if ($item->caja_chica_detalle_comprobante_interno == null) @else @endif @if ($item->caja_chica_detalle_orden_producto_id == null) @else @endif @endforeach @else @endif
# Documento Tipo de Gasto Proveedor Observaciones Fecha de Documento Dinero Dado A Monto ¿Comprobante Interno? Orden Servicio Funerario Acciones
{{ $contador++ }} {{ $item->caja_chica_detalle_documento }} {{ $item->tipo_gasto_nombre }} {{ $item->cliente_proveedor_nombre }} {{ $item->caja_chica_detalle_observaciones }} {{ $item->caja_chica_detalle_fechacreacion }} {{ $item->caja_chica_detalle_dado_a }} {{ $item->caja_chica_detalle_monto }}Sin Comprobante{{ $item->caja_chica_detalle_comprobante_interno }} No definido{{ $item->orden_producto_numero }}
@if ($item->caja_chica_detalle_comprobante_interno == null) @else @endif
No se encontraron resultados.
{{ $details->links() }}

Observaciones de Caja Actual:

Tiempo Actual: {{ Date('Y-m-d H:i:s') }}

Saldo Inicial ₡{{ number_format($data->caja_chica_saldo_inicial, 2, '.', ',') }}
Total Detalles ₡{{ number_format($saldo_egresado, 2, '.', ',') }}
Saldo Actual ₡{{ number_format($data->caja_chica_saldo_final, 2, '.', ',') }}
@if ($data->caja_chica_estado == '0') @elseif($data->caja_chica_estado == '2') {{-- aprobar-cierreCaja-chica --}} @if (auth()->user()->hasPermissionTo('aprobar-cierreCaja-chica')) Ejecutar Cierre @endif @elseif($data->caja_chica_estado == '3') @else @if (auth()->user()->hasPermissionTo('aprobar-pre-cierreCaja-chica')) Ejecutar Pre-Cierre @endif @endif
@endif
@endsection @section('script') @isset($data->reintegro_estado) @if ($data->reintegro_estado == '2') @endif @endif @endsection