KOKINIO - MANAGER
Edit File: Invoice.blade.php
<style type="text/css"> .filterable { margin-top: 15px; } .filterable .panel-heading .pull-right { margin-top: -20px; } .filterable .filters input[disabled] { background-color: transparent; border: none; cursor: auto; box-shadow: none; padding: 0; height: auto; } .filterable .filters input[disabled]::-webkit-input-placeholder { color: #333; } .filterable .filters input[disabled]::-moz-placeholder { color: #333; } .filterable .filters input[disabled]:-ms-input-placeholder { color: #333; } </style> <section class="content-header"> <h1> Facturas <small>Control de Facturas</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-sitemap"></i> Inicio</a></li> <li class="active">Facturas</li> </ol> </section> <section class="content"> <div class="row"> <div class="col-md-12 col-xs-12"> <div class="box box-danger"> <div class="box-header"> <h3 class="box-title">Busqueda de Facturas por mes</h3> </div> <div class="box-body"> <div class="form-group col-md-6"> <input type="hidden" id="token" name="_token" value="{{ csrf_token()}}" /> <label class="control-label" for="cliente">Cliente : </label> <select id="cliente-select" class="form-control select2" style="width: 100%;" tabindex="-1" aria-hidden="true"> {{-- <option id="" value="vacio">Vacio</option> --}} {{-- @if(isset($clientes)) @foreach($clientes as $key => $value) <option id="{{ $value->id }}" value="{{ $value->id }}">{{ $value->registro." ".$value->nombre." ".$value->ape_p." ".$value->ape_m }}</option> @endforeach @endif --}} </select> </div> <div class="form-group col-md-2"> <label class="control-label" for="year">Año: </label> <select id="year" class="form-control"> <option value="">Selecciona</option> @if(isset($data['years'])) @foreach($data['years'] as $year) <option value="{{ $year }}">{{ $year }}</option> @endforeach @endif </select> </div> <div class="form-group col-md-2"> <label class="control-label" for="mes">Mes: </label> <select id="month" class="form-control"> <option value="">Selecciona</option> @if(isset($data['months'])) @foreach($data['months'] as $month) <option value="{{ $month }}">{{ App\Helper::month($month) }}</option> @endforeach @endif </select> </div> <div class="form-group col-md-2"> </br> <button onclick="Invoice.getInvoice(this)" class="btn btn-success">Busqueda</button> </div> </div> </div> </div> </div> <div id="invoice-table" class="row"> <div class="col-md-12 col-xs-12"> <div class="box box-danger"> <input type="hidden" id="token" name="_token" value="{{ csrf_token()}}" /> <div class="panel filterable block full table-responsive"> <div class="box-header"> <h3 class="box-title">Facturas Activas</h3> @if(App\Helper::getRol() == \Auth::user()->rol_id || App\Helper::getRolOp() == \Auth::user()->rol_id) <div class="box-tools pull-right"> <div class="btn-group"> <div id="loading" style="width:50px; height: 50px"> <img id="gif_loading" style="width:25px;display:none;" src='{{ URL::To('/')."/img/Loading_2.gif" }}' /> </div> </div> <div class="btn-group"> <button onclick="Invoice.downloadXls(this)" id="filter" class="btn btn-sm btn-success"><span class="glyphicon glyphicon-download-alt"></span></button> </div> <div class="btn-group"> <button onclick="Invoice.tableFilter(this)" id="filter" class="btn btn-default btn-sm btn-filter"><span class="glyphicon glyphicon-filter"></span> Filter</button> </div> </div> @endif </div> <!-- /.box-header --> <div class="box-body table-responsive no-padding"> <table id="invoice" class="table table-hover table-responsive"> <thead> <tr class="filters"> <th class=""><input type="text" class="form-control " placeholder="Folio" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="Cliente" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="Tipo Factura" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="RFC" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="Total" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="Fecha" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="Tipo Factura" disabled /></th> <th class=""><input type="text" class="form-control " placeholder="Estado" disabled /></th> <th class="">PDF</th> <th class="">XML</th> <th class="">Zip</th> <!-- <th class="">Cancelar</th> --> </tr> </thead> <tbody> @if(isset($invoice)) @foreach($invoice as $key => $value) <tr> <td>{{ $value->folio }}</td> <td>{{ $value->tipo_factura }}</td> <td>{{ $value->nombre." ".$value->ape_p }}</td> <td>{{ $value->rfc }}</td> <td>${{ $value->total }}</td> <td>{{ $value->invoice_date }}</td> <td >{{ App\Helper::getInvoiceType($value->tipo_factura) }}</td> <td><span class="badge btn-{{ App\Helper::getInvoiceColor($value->status) }}"> {{ App\Helper::getInvoiceStatus($value->status) }}</span></td> <td><a href="{{ URL::To('/').'/venta/invoice?id='.$value->invoice_id.'&type=pdf' }}" target="_blank" class="btn btn-sm btn-danger"><span class="fa fa-file-pdf-o"></span></a></td> <td><a href="{{ URL::To('/').'/venta/invoice?id='.$value->invoice_id.'&type=xml' }}" target="_blank" class="btn btn-sm btn-warning"><span class="fa fa-file-code-o"></span></a></td> <td><a href="{{ URL::To('/').'/venta/invoice?id='.$value->invoice_id.'&type=zip' }}" target="_blank" class="btn btn-sm btn-primary"><span class="fa fa-file-zip-o"></span></a></td> <!-- <td><button data-id="{{ $value->invoice_id }}" onclick="Invoice.cancel(this)" class="btn btn-sm btn-danger"><span class="fa fa-ban"></span></button></td> --> </tr> @endforeach @endif </tbody> </table> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> </div> </section> <script src="{{ URL::To('/').'/js/Catalogos/invoice.js' }}"></script>