Files
Additional/resources/views/ops/unauthorized.blade.php
T
twotalesanimation bb6b92df10 feat: Add Blade templates for ops QR interface (Phase 2)
Create state-driven UI templates:

Main Template (ops/order-detail.blade.php):
- Display order summary with status, type, customer, date
- Render QR code SVG for shop-floor access
- Conditionally include state-specific action forms
- Show order items, packing details, shipment info

Action Templates:
- ops/actions/packing.blade.php: Form to input weight/dimensions
- ops/actions/inspection.blade.php: Pass/Fail inspection with optional notes
- ops/actions/read-only.blade.php: Status display for read-only states

Error Pages:
- ops/order-not-found.blade.php: Invalid/expired QR token
- ops/unauthorized.blade.php: Insufficient permissions

All forms use AJAX submission with confirmation dialogs
2026-01-02 18:57:21 +02:00

21 lines
810 B
PHP

@extends('layouts.app')
@section('content')
<div class="container mx-auto px-4 py-8">
<div class="bg-yellow-50 border-2 border-yellow-200 rounded-lg p-8 text-center">
<h1 class="text-4xl font-bold text-yellow-900 mb-3">🔒 Access Denied</h1>
<p class="text-yellow-700 mb-6 text-lg">
You do not have permission to access this page. Only operations staff can view QR-based order interfaces.
</p>
@if(auth()->check())
<p class="text-gray-600 mb-6">
Logged in as: <strong>{{ auth()->user()->name }}</strong>
</p>
@endif
<a href="{{ route('home') }}" class="inline-block bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-6 rounded">
Return Home
</a>
</div>
</div>
@endsection