Path : /var/www/html/thb_loan_system/resources/views/supplier/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/thb_loan_system/resources/views/supplier/data.blade.php |
@extends('layouts.master') @section('title') {{translate('supplier')}} @endsection @section('content') <div class="panel panel-white"> <div class="panel-heading"> <h6 class="panel-title"> {{translate('supplier')}}</h6> <div class="heading-elements"> @if(Sentinel::hasAccess('stock.create')) <a href="{{ url('supplier/create') }}" class="btn btn-info btn-sm">{{translate('add supplier')}}</a> @endif </div> </div> <div class="panel-body "> <div class="table-responsive"> <table id="data-table" class="table table-bordered table-condensed table-hover"> <thead> <tr style="background-color: #D1F9FF"> <th>{{translate('name')}}</th> <th>{{translate('phone')}}</th> <th>{{translate('email')}}</th> <th>{{translate('address')}}</th> <th>{{translate('note')}}</th> <th>{{ translate('action') }}</th> </tr> </thead> <tbody> @foreach($data as $key) <tr> <td>{{ $key->name }}</td> <td>{{ $key->mobile_phone }}</td> <td>{{ $key->email }}</td> <td>{{ $key->address }}</td> <td>{!! $key->notes !!}</td> <td> <div class="btn-group"> <button type="button" class="btn btn-info btn-xs dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> {{ translate('choose') }} <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> @if(Sentinel::hasAccess('stock.update')) <li><a href="{{ url('supplier/'.$key->id.'/edit') }}"><i class="fa fa-edit"></i> {{ translate('edit') }} </a> </li> @endif @if(Sentinel::hasAccess('stock.delete')) <li><a href="{{ url('supplier/'.$key->id.'/delete') }}" class="delete"><i class="fa fa-trash"></i> {{ translate('delete') }} </a> </li> @endif </ul> </div> </td> </tr> @endforeach </tbody> </table> </div> </div> <!-- /.panel-body --> </div> <!-- /.box --> @endsection @section('footer-scripts') <script src="{{ asset('assets/plugins/datatable/media/js/jquery.dataTables.js')}}"></script> <script src="{{ asset('assets/plugins/datatable/media/js/dataTables.bootstrap.js')}}"></script> <script src="{{ asset('assets/plugins/datatable/extensions/Buttons/js/dataTables.buttons.min.js')}}"></script> <script src="{{ asset('assets/plugins/datatable/extensions/Buttons/js/buttons.html5.min.js')}}"></script> <script src="{{ asset('assets/plugins/datatable/extensions/Buttons/js/buttons.print.min.js')}}"></script> <script src="{{ asset('assets/plugins/datatable/extensions/Responsive/js/dataTables.responsive.min.js')}}"></script> <script src="{{ asset('assets/plugins/datatable/extensions/Buttons/js/buttons.colVis.min.js')}}"></script> <script> $('#data-table').DataTable({ dom: 'Bfrtip', buttons: [ {extend: 'copy', 'text': '{{ translate('copy') }}'}, {extend: 'excel', 'text': '{{ translate('excel') }}'}, {extend: 'pdf', 'text': '{{ translate('pdf') }}'}, {extend: 'print', 'text': '{{ translate('print') }}'}, {extend: 'csv', 'text': '{{ translate('csv') }}'}, {extend: 'colvis', 'text': '{{ translate('colvis') }}'} ], "paging": true, "lengthChange": true, "displayLength": 15, "searching": true, "ordering": true, "info": true, "autoWidth": true, "order": [[0, "asc"]], "columnDefs": [ {"orderable": false, "targets": [5]} ], "language": { "lengthMenu": "{{ translate('lengthMenu') }}", "zeroRecords": "{{ translate('zeroRecords') }}", "info": "{{ translate('info') }}", "infoEmpty": "{{ translate('infoEmpty') }}", "search": "{{ translate('search') }}", "infoFiltered": "{{ translate('infoFiltered') }}", "paginate": { "first": "{{ translate('first') }}", "last": "{{ translate('last') }}", "next": "{{ translate('next') }}", "previous": "{{ translate('previous') }}" } }, responsive: false }); </script> @endsection