@extends('layouts.app') @section('content') @include('inc.h') @include('inc.s')
| # | Order Name | Total Price | Status | Action | |
|---|---|---|---|---|---|
| {{ $order->id }} | {{ $order->name }} | {{ $order->email }} | ₦{{ $order->price }} | {{ $order->completed ? 'Completed' : 'Pending' }} | View Products @php $isTrader = false; foreach ($order->products as $product) { if ($product->trader_id == Auth::id()) { $isTrader = true; break; } } @endphp @if ($isTrader && (Auth::user()->role == 'smart_trader' || Auth::user()->role == 'digital_boss' || Auth::user()->admin)) @endif |