KOKINIO - MANAGER
Edit File: sectionInvoiceTable.blade.php
<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"> <button onclick="Invoice.tableFilter(this)" id="filter" class="btn btn-default btn-sm btn-filter"><span class="glyphicon glyphicon-filter"></span> Filter</button> <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> @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="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="Status" 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->nombre." ".$value->ape_p }}</td> <td>{{ $value->rfc }}</td> <td>${{ $value->total }}</td> <td>{{ $value->invoice_date }}</td> <td>{{ $value->status }}</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>