@extends('layouts.app') @section('title', __('vendor.list')) @section('content')
@can('create', new App\Models\Vendor) {{ link_to_route('vendors.create', __('vendor.create'), [], ['class' => 'btn btn-success']) }} @endcan

{{ __('vendor.list') }} {{ __('app.total') }} : {{ $vendors->total() }} {{ __('vendor.vendor') }}

{{ Form::open(['method' => 'get', 'class' => 'row row-cols-lg-auto g-3 align-items-center']) }}
{!! Form::text('q', request('q'), ['label' => false, 'placeholder' => __('vendor.search')]) !!}
{{ Form::submit(__('vendor.search'), ['class' => 'btn-secondary']) }} {{ link_to_route('vendors.index', __('app.reset'), [], ['class' => 'btn btn-link']) }}
{{ Form::close() }}
@foreach($vendors as $key => $vendor) @endforeach
{{ __('app.table_no') }} {{ __('vendor.name') }} {{ __('vendor.description') }} {{ __('app.action') }}
{{ $vendors->firstItem() + $key }} {!! $vendor->name !!} {{ $vendor->description }} @can('view', $vendor) {{ __('app.show') }} @endcan
{{ $vendors->appends(Request::except('page'))->render() }}
@endsection