{{--
=====================================================
Etebarit - by Gisoo Web Solutions
------------------------------------------------------
Gisoo.net
------------------------------------------------------
Copyright (c) 2026 Gisoo Web Solutions
=====================================================
This code is protected by copyright
=====================================================
File: orders.blade.php
------------------------------------------------------
Use: The merchant's orders: every gateway order for this
shop with the fee split, its status and a way into the
order detail and its transactions. Merchant-only
figures - a regular user never sees the fee or share.
=====================================================
--}}
@extends('layouts.merchant')
@section('title', __('front.shop.orders.title'))
@php use App\Support\Format; @endphp
@section('breadcrumb')
{{ __('front.shop.orders.subtitle') }}
| {{ __('front.shop.orders.order') }} | {{ __('front.shop.orders.customer') }} | {{ __('front.shop.orders.total') }} | {{ __('front.shop.orders.share') }} | {{ __('front.shop.orders.time') }} | {{ __('front.shop.orders.status') }} | {{ __('front.shop.orders.actions') }} |
|---|---|---|---|---|---|---|
| {{ $order->code }} | {{ $order->user?->fullName() ?? '—' }} | @toman($order->amount) {{ __('front.shop.orders.toman') }} | @if ($paid)@toman((int) $order->shop_share) {{ __('front.shop.orders.toman') }}@else—@endif | @jalaliDateTime($order->paid_at ?? $order->created_at) | $paid, 'bg-[#fff5e6] text-amber-600' => $order->status === \App\Models\Order::STATUS_PENDING, 'bg-secondary-50 text-secondary-500' => in_array($order->status, [\App\Models\Order::STATUS_FAILED, \App\Models\Order::STATUS_EXPIRED], true), ])>{{ __('front.shop.sales.statuses.'.$order->status) }} |