53 lines
2.2 KiB
PHP
53 lines
2.2 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<h6 class="card-header d-flex justify-content-between align-items-center">
|
|
<span>{{ __('Verpackungsmaterial') }}</span>
|
|
<a href="{{ route('admin.inventory.packaging-materials.create') }}" class="btn btn-sm btn-primary">{{ __('Neu anlegen') }}</a>
|
|
</h6>
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatables-style table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="max-width: 60px;"> </th>
|
|
<th>{{ __('Pos') }}</th>
|
|
<th>{{ __('Name') }}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($values as $value)
|
|
<tr>
|
|
<td>
|
|
<a href="{{ route('admin.inventory.packaging-materials.edit', $value) }}" class="btn icon-btn btn-sm btn-primary">
|
|
<span class="far fa-edit"></span>
|
|
</a>
|
|
</td>
|
|
<td>{{ $value->pos }}</td>
|
|
<td>{{ $value->name }}</td>
|
|
<td>
|
|
<form action="{{ route('admin.inventory.packaging-materials.destroy', $value) }}" method="post" class="d-inline"
|
|
onsubmit="return confirm('{{ __('Really delete entry?') }}');">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button type="submit" class="btn btn-link text-danger p-0"><i class="far fa-trash-alt"></i></button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('.datatables-style').dataTable({
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"order": [[1, "asc"]],
|
|
"language": {"url": "/js/German.json"}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|