@extends('template.layout')

@section('content')
    <h1 class="page-title">
     @if($simulador == true) Simulador de @endif   Cierre de Caja
    </h1>

        <div class="portlet light bordered">
            <div class="portlet-title">
                <div class="caption">

                    <h1 class="caption-subject font-green sbold uppercase">
                        <a class=" icon-action-undo" href="{{ url('tesoreria/caja/aperturar') }}" style="padding: 5px;"></a>
                        Listado de pagos
                    </h1>
                </div>

            </div>
            {!! Form::hidden('invisible',$idt , array('id' => 'invisible')) !!}


            <div class="col-md-3 col-md-offset-4" style="padding: 0;">
                <div class="portlet green-sharp box">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>Detalle de Cierre de Caja</div>
                    </div>
                    <div class="portlet-body">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="col-lg-12">
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label"> Monto Inicial de caja</label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label" id="nalumnos"> S/. {{ number_format((float)$turno['montoini'], 2, '.', '') }} </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-12" style="border-bottom: solid 2px; height: 33px;">
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label"> Monto Recaudado </label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label" id="nalumnos"> S/. {{ number_format((float)$turno['montorecaudado'], 2, '.', '') }} </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label"> Monto Total  </label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label" id="nalumnos"> S/. {{ number_format((float)$total, 2, '.', '') }} </label>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-lg-12">
                                <div class="col-lg-12" style="border-bottom: solid  2px; height: 33px;">
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label"> Monto Declarado</label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label" id="nalumnos"> S/. {{ number_format((float)$turno['montodeclarado'], 2, '.', '') }} </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label"> Monto Faltante </label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label" id="nalumnos"> S/. {{ number_format((float)$faltante, 2, '.', '') }} </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label"> Monto Sobrante </label>
                                        </div>
                                    </div>
                                    <div class="col-lg-6">
                                        <div class="form-group" style="text-align: left">
                                            <label class="control-label" id="nalumnos"> S/. {{ number_format((float)$sobrante, 2, '.', '') }} </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="portlet-body" style="padding-top: 2% !important;">
                <div class="Forum-ForumTopicList row" style="margin:20px">
                    <table class="table table-hover nowrap dataTable dtr-inline collapsed tbDetalleRecibos"
                           id="tbDetalleRecibos"
                           width="100%" role="grid" aria-describedby="tbDetalleRecibos_info" style="text-align: center;">
                        <thead class="thead-default">
                        <tr>
                            <th style="text-align: center;">N&uacute;mero de recibo</th>
                            <th style="text-align: center;">Fecha de Creaci&oacute;n</th>
                            <th style="text-align: center;">Cliente</th>
                            <th style="text-align: center;">Concepto</th>
                            <th style="text-align: center;">Tipo de Tr&aacute;mite</th>
                            <th style="text-align: center;">Total</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <div id="Modal_Detalle" class="modal fade modal-scroll" tabindex="-1"  aria-hidden="true"  data-width="760" style="display: none;">
            <div class="modal-dialog">
                <div class="modal-content">

                </div>
            </div>
        </div>
@endsection
@section('scripts')
    <script>
        var urlData = "{{ route('cerrar.caja') }}";
        var urlBase = "{{ url('tesoreria/caja') }}";
        var urlCerrar = "{{ route('cerrar.caja') }}";
    </script>
    <script src="{{asset('css/icheck/icheck.min.js')}}" type="text/javascript"></script>
    <script src="{{asset('js/Tesoreria/GestionCaja.js')}}"></script>
@endsection