snipe-it/resources/views/manufacturers/index.blade.php

51 lines
1.2 KiB
PHP
Executable file

@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/manufacturers/table.asset_manufacturers') }}
@parent
@stop
{{-- Page title --}}
@section('header_right')
@can('create', \App\Models\Manufacturer::class)
<a href="{{ route('manufacturers.create') }}" class="btn btn-primary pull-right">
{{ trans('general.create') }}</a>
@endcan
@stop
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-default">
<div class="box-body">
<div class="table-responsive">
<table
name="manufacturers"
class="table table-striped snipe-table"
id="manufacturersTable"
data-url="{{route('api.manufacturers.index') }}"
data-cookie="true"
data-show-export="true"
data-click-to-select="true"
data-cookie-id-table="manufacturersTable">
</table>
</div>
</div><!-- /.box-body -->
</div><!-- /.box -->
</div>
</div>
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table',
['exportFile' => 'manufacturers-export',
'search' => true,
'columns' => \App\Presenters\ManufacturerPresenter::dataTableLayout()
])
@stop