- 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>
123 lines
6.2 KiB
PHP
123 lines
6.2 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">{{ __('Einstellungen') }}</h1>
|
||
<p class="wawi-page-head__subtitle">{{ __('Umsatzsteuersätze und Lieferzeit-Vorlagen') }}</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="wawi-card">
|
||
<div class="wawi-card__header">
|
||
<span>{{ __('Umsatzsteuersätze') }}</span>
|
||
<a href="{{ route('admin.inventory.tax-rates.create') }}" class="btn btn-sm btn-primary">{{ __('Neu anlegen') }}</a>
|
||
</div>
|
||
<div class="table-responsive">
|
||
<table class="table wawi-table">
|
||
<thead>
|
||
<tr>
|
||
<th style="max-width: 60px;"> </th>
|
||
<th>{{ __('Name') }}</th>
|
||
<th>{{ __('Satz') }}</th>
|
||
<th>{{ __('Status') }}</th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@forelse($taxRates as $taxRate)
|
||
<tr>
|
||
<td>
|
||
<a href="{{ route('admin.inventory.tax-rates.edit', $taxRate) }}"
|
||
class="btn icon-btn btn-sm btn-primary">
|
||
<span class="far fa-edit"></span>
|
||
</a>
|
||
</td>
|
||
<td>{{ $taxRate->name }}</td>
|
||
<td>{{ number_format($taxRate->percent, 2, ',', '.') }} %</td>
|
||
<td>
|
||
@if ($taxRate->active)
|
||
<span class="wawi-pill wawi-pill--ok">{{ __('Aktiv') }}</span>
|
||
@else
|
||
<span class="wawi-pill wawi-pill--danger">{{ __('Inaktiv') }}</span>
|
||
@endif
|
||
</td>
|
||
<td>
|
||
<form action="{{ route('admin.inventory.tax-rates.destroy', $taxRate) }}" 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"
|
||
title="{{ __('Delete') }}"><i class="far fa-trash-alt"></i></button>
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
@empty
|
||
<tr>
|
||
<td colspan="5"><div class="wawi-empty">{{ __('Noch keine Umsatzsteuersätze angelegt.') }}</div></td>
|
||
</tr>
|
||
@endforelse
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="wawi-card">
|
||
<div class="wawi-card__header">
|
||
<span>{{ __('Lieferzeit-Vorlagen') }}</span>
|
||
<a href="{{ route('admin.inventory.delivery-times.create') }}" class="btn btn-sm btn-primary">{{ __('Neu anlegen') }}</a>
|
||
</div>
|
||
<div class="table-responsive">
|
||
<table class="table wawi-table">
|
||
<thead>
|
||
<tr>
|
||
<th style="max-width: 60px;"> </th>
|
||
<th>{{ __('Bezeichnung') }}</th>
|
||
<th>{{ __('Tage') }}</th>
|
||
<th>{{ __('Status') }}</th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@forelse($deliveryTimes as $deliveryTime)
|
||
<tr>
|
||
<td>
|
||
<a href="{{ route('admin.inventory.delivery-times.edit', $deliveryTime) }}"
|
||
class="btn icon-btn btn-sm btn-primary">
|
||
<span class="far fa-edit"></span>
|
||
</a>
|
||
</td>
|
||
<td>{{ $deliveryTime->label }}</td>
|
||
<td>{{ $deliveryTime->days !== null ? $deliveryTime->days : '–' }}</td>
|
||
<td>
|
||
@if ($deliveryTime->active)
|
||
<span class="wawi-pill wawi-pill--ok">{{ __('Aktiv') }}</span>
|
||
@else
|
||
<span class="wawi-pill wawi-pill--danger">{{ __('Inaktiv') }}</span>
|
||
@endif
|
||
</td>
|
||
<td>
|
||
<form action="{{ route('admin.inventory.delivery-times.destroy', $deliveryTime) }}"
|
||
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"
|
||
title="{{ __('Delete') }}"><i class="far fa-trash-alt"></i></button>
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
@empty
|
||
<tr>
|
||
<td colspan="5"><div class="wawi-empty">{{ __('Noch keine Lieferzeit-Vorlagen angelegt.') }}</div></td>
|
||
</tr>
|
||
@endforelse
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
@endsection
|