@extends('layouts.app') @section('title', __('vendor.list')) @section('content')

{{ link_to_route('vendors.index', __('vendor.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }}
{{ __('vendor.list') }} {{ __('app.total') }} : {{ $vendors->total() }} {{ __('vendor.vendor') }}

{{ Form::open(['method' => 'get','class' => 'form-inline']) }} {!! FormField::text('q', ['value' => request('q'), 'label' => __('vendor.search'), 'class' => 'input-sm']) !!} {{ Form::submit(__('vendor.search'), ['class' => 'btn btn-sm']) }} {{ link_to_route('vendors.index', __('app.reset')) }} {{ Form::close() }}
@foreach($vendors as $key => $vendor) @endforeach
{{ __('app.table_no') }} {{ __('vendor.name') }} {{ __('app.notes') }} {{ __('app.action') }}
{{ $vendors->firstItem() + $key }} {{ $vendor->name }} {{ $vendor->notes }} {{ link_to_route('vendors.show', __('app.show'), $vendor) }} | {{ link_to_route( 'vendors.index', __('app.edit'), ['action' => 'edit', 'id' => $vendor->id] + Request::only('page', 'q'), ['id' => 'edit-vendor-' . $vendor->id] ) }}
{{ $vendors->appends(Request::except('page'))->render() }}
@includeWhen(Request::has('action'), 'vendors.forms')
@endsection