@extends('layouts.app') @section('title', __('master.list')) @section('content')
@can('create', new fullMstr) {{ link_to_route('masters.index', __('master.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }} @endcan

{{ __('master.list') }} {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }}

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