@extends('layouts.app') @section('title', trans('master.list')) @section('content')

@can('create', new fullMstr) {{ link_to_route('masters.index', trans('master.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }} @endcan
{{ trans('master.list') }} {{ trans('app.total') }} : {{ $mstrCollections->total() }} {{ trans('master.master') }}

{{ Form::open(['method' => 'get','class' => 'form-inline']) }} {!! FormField::text('q', ['value' => request('q'), 'label' => trans('master.search'), 'class' => 'input-sm']) !!} {{ Form::submit(trans('master.search'), ['class' => 'btn btn-sm']) }} {{ link_to_route('masters.index', trans('app.reset')) }} {{ Form::close() }}
@foreach($mstrCollections as $key => $singleMstr) @endforeach
{{ trans('app.table_no') }} {{ trans('master.name') }} {{ trans('master.description') }} {{ trans('app.action') }}
{{ $mstrCollections->firstItem() + $key }} {{ $singleMstr->name }} {{ $singleMstr->description }} @can('update', $singleMstr) {!! link_to_route( 'masters.index', trans('app.edit'), ['action' => 'edit', 'id' => $singleMstr->id] + Request::only('page', 'q'), ['id' => 'edit-singleMstr-' . $singleMstr->id] ) !!} | @endcan @can('delete', $singleMstr) {!! link_to_route( 'masters.index', trans('app.delete'), ['action' => 'delete', 'id' => $singleMstr->id] + Request::only('page', 'q'), ['id' => 'del-singleMstr-' . $singleMstr->id] ) !!} @endcan
{{ $mstrCollections->appends(Request::except('page'))->render() }}
@if(Request::has('action')) @include('masters.forms') @endif
@endsection