- Zentrale, wiederverwendbare Design-Partial wawi-ui.blade.php (gescoptes Inline-CSS, kein Build noetig) - Bausteine: Seitenkopf, Kennzahlen-Kacheln, Karten, Toolbar/Suche, aufgeraeumte Tabellen, Status-Pills, Datenblatt-Definitionsliste, Name-Zelle mit fester Icon-Spalte, Leer-Zustaende - Umgestellt: alle Uebersicht-/Listen- und Detailseiten unter admin/inventory - Responsive: Detail-Datenblaetter brechen unter 768px gestapelt um (Label oben, Wert linksbuendig); Icon-Spalte verhindert Versatz bei Zeilenumbruch - Entwicklungsplan um AP-19 + UI-Konvention ergaenzt Co-authored-by: Cursor <cursoragent@cursor.com>
62 lines
2.5 KiB
PHP
62 lines
2.5 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
@include('admin.inventory.partials.wawi-ui')
|
|
<div class="wawi-page">
|
|
<div class="wawi-page-head">
|
|
<div>
|
|
<h1 class="wawi-page-head__title">{{ __('Rohstoffqualität') }}</h1>
|
|
</div>
|
|
<div class="wawi-page-head__actions">
|
|
<a href="{{ route('admin.inventory.material-qualities.create') }}" class="btn btn-sm btn-primary">
|
|
<span class="fas fa-plus mr-1"></span>{{ __('Neu anlegen') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="wawi-card">
|
|
<div class="card-datatable table-responsive p-2">
|
|
<table class="datatables-style table wawi-table">
|
|
<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.material-qualities.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.material-qualities.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>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('.datatables-style').dataTable({
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"order": [[1, "asc"]],
|
|
"language": {"url": "/js/German.json"}
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|