You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
3.1 KiB
71 lines
3.1 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('master.list'))
|
|
|
|
@section('content')
|
|
<h1 class="page-header">
|
|
<div class="pull-right">
|
|
@can('create', new fullMstr)
|
|
{{ link_to_route('masters.index', trans('master.create'), ['action' => 'create'], ['class' => 'btn btn-success']) }}
|
|
@endcan
|
|
</div>
|
|
{{ trans('master.list') }}
|
|
<small>{{ trans('app.total') }} : {{ $mstrCollections->total() }} {{ trans('master.master') }}</small>
|
|
</h1>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="panel panel-default table-responsive">
|
|
<div class="panel-heading">
|
|
{{ 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() }}
|
|
</div>
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">{{ trans('app.table_no') }}</th>
|
|
<th>{{ trans('master.name') }}</th>
|
|
<th>{{ trans('master.description') }}</th>
|
|
<th class="text-center">{{ trans('app.action') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($mstrCollections as $key => $singleMstr)
|
|
<tr>
|
|
<td class="text-center">{{ $mstrCollections->firstItem() + $key }}</td>
|
|
<td>{{ $singleMstr->name }}</td>
|
|
<td>{{ $singleMstr->description }}</td>
|
|
<td class="text-center">
|
|
@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
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="panel-body">{{ $mstrCollections->appends(Request::except('page'))->render() }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
@if(Request::has('action'))
|
|
@include('masters.forms')
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endsection
|