Path : /var/www/html/jewelry-pos/resources/views/suppliers/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/jewelry-pos/resources/views/suppliers/index.blade.php |
@extends('layouts.admin-main') @section('content') <div class="col-lg-12"> <div class="card-body shadow-1"> <div class="row"> <div class="col-lg-12 margin-tb"> <div class="pull-right mb-2" style="text-align: right;"> @can('supplier-create') <a class="btn btn-sm btn-primary" href="{{ route('suppliers.create') }}"> <i class="fal fa-plus"></i> {{ __('message.add new') }} </a> @endcan </div> </div> </div> <div class="panel-container show"> <div class="d-flex flex-column h-100"> <div class="h-auto"> <table id="example" class="table table-bordered table-hover table-striped w-100"> <thead class="bg-fusion-400"> <tr> <th>#</th> <th>{{ __('message.name') }}</th> <th>{{ __('message.phone') }}</th> <th>{{ __('message.note') }}</th> <th>{{ __('message.created date') }}</th> <th>{{ __('message.action') }}</th> </tr> </thead> <tbody> @foreach ($suppliers as $index => $supplier) <tr> <td>{{ $index+1 }}</td> <td>{{ $supplier->name }}</td> <td>{{ $supplier->phone }}</td> <td>{!! $supplier->note !!}</td> <td> {{ $supplier->created_at->format('d/m/Y H:i') }} <td> @can('supplier-edit') <a class="btn btn-sm btn-info" href="{{ route('suppliers.edit', $supplier->id) }}"><i class="fal fa-pen" title="{{__('message.edit')}}"></i></a> @endcan <form method="POST" action="suppliers/{{$supplier->id}}" style="display:inline"> <input name="_method" type="hidden" value="DELETE"> {{ csrf_field() }} <button type="submit" class="btn btn-sm btn-danger" onclick="return confirm('{{ __('message.do you want to delete') }}?')"> <i class="fal fa-trash" style="color: #FFF;"></i> </button> </td> </tr> @endforeach </tbody> </table> <!-- datatable end --> </div> </div> </div> </div> <div class="py-4 mt-4 mx-2 "> <!-- Pagination bootstrap--> {{ $suppliers->appends($_GET)->links() }} </div> </div> @endsection @section('scripts') <script> $(document).ready(function() { $("#js-nav-menu").removeClass('active'); $("#js-nav-menu li ul li").removeClass('active'); $("#menu_setup_list").addClass('active open'); $("#collapse_setup").addClass('collapse in') $("#menu_supplier").addClass('active') }) </script> @endsection @section('meta') <title>{{__('message.supplier')}} - {{$settings_->shop_name}}</title> @endsection