4a8b4ddac2
1. Fix Yoco payment amount calculation: order->total already includes shipping_fee, so don't add it again. Was charging 2x shipping. 2. Add authorization gate for ops staff access: users with is_admin=true can now access the ops page by scanning QR codes.
22 lines
1.3 KiB
PHP
22 lines
1.3 KiB
PHP
|
|
|
|
<?php $__env->startSection('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>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->check()): ?>
|
|
<p class="text-gray-600 mb-6">
|
|
Logged in as: <strong><?php echo e(auth()->user()->name); ?></strong>
|
|
</p>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
<a href="<?php echo e(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>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/additional_design/resources/views/ops/unauthorized.blade.php ENDPATH**/ ?>
|