help desk admin

This commit is contained in:
merdan 2020-05-05 15:55:21 +05:00
parent 6b6ce8a541
commit 4724338f92
1 changed files with 69 additions and 1 deletions

View File

@ -14,5 +14,73 @@
@endsection
@section('content')
@if ($crud->hasAccess('list'))
<a href="{{ url($crud->route) }}" class="hidden-print"><i class="fa fa-angle-double-left"></i> {{ trans('backpack::crud.back_to_all') }} <span>{{ $crud->entity_name_plural }}</span></a>
@endsection
<a href="javascript: window.print();" class="pull-right hidden-print"><i class="fa fa-print"></i></a>
@endif
<div class="row">
<div class="{{ $crud->getShowContentClass() }}">
<!-- Default box -->
<div class="m-t-20">
@if ($crud->model->translationEnabled())
<div class="row">
<div class="col-md-12 m-b-10">
<!-- Change translation button group -->
<div class="btn-group pull-right">
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{trans('backpack::crud.language')}}: {{ $crud->model->getAvailableLocales()[$crud->request->input('locale')?$crud->request->input('locale'):App::getLocale()] }} &nbsp; <span class="caret"></span>
</button>
<ul class="dropdown-menu">
@foreach ($crud->model->getAvailableLocales() as $key => $locale)
<li><a href="{{ url($crud->route.'/'.$entry->getKey()) }}?locale={{ $key }}">{{ $locale }}</a></li>
@endforeach
</ul>
</div>
</div>
</div>
@else
@endif
<div class="box no-padding no-border">
<table class="table table-striped">
<tbody>
@foreach ($crud->columns as $column)
<tr>
<td>
<strong>{{ $column['label'] }}</strong>
</td>
<td>
@if (!isset($column['type']))
@include('crud::columns.text')
@else
@if(view()->exists('vendor.backpack.crud.columns.'.$column['type']))
@include('vendor.backpack.crud.columns.'.$column['type'])
@else
@if(view()->exists('crud::columns.'.$column['type']))
@include('crud::columns.'.$column['type'])
@else
@include('crud::columns.text')
@endif
@endif
@endif
</td>
</tr>
@endforeach
@if ($crud->buttons->where('stack', 'line')->count())
<tr>
<td><strong>{{ trans('backpack::crud.actions') }}</strong></td>
<td>
@include('crud::inc.button_stack', ['stack' => 'line'])
</td>
</tr>
@endif
</tbody>
</table>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
</div>
@endsection