{{-- ===================================================== 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') @endsection @section('page')

{{ __('front.shop.orders.title') }}

{{ __('front.shop.orders.subtitle') }}

{{-- Lifetime fee-split totals --}}
{{ __('front.shop.orders.sold_total') }}
@toman($soldTotal) {{ __('front.shop.orders.toman') }}
{{ __('front.shop.orders.net_total') }}
@toman($netTotal) {{ __('front.shop.orders.toman') }}
{{ __('front.shop.orders.fee_total') }}
@toman($feeTotal) {{ __('front.shop.orders.toman') }}
{{-- Status filter + search --}}
@foreach (__('front.shop.orders.filters') as $key => $label) $status === $key, 'text-ink-muted hover:text-secondary-500' => $status !== $key, ])>{{ $label }} @endforeach
@if ($status !== 'all')@endif
@if ($orders->isEmpty())
{{ $search !== '' || $status !== 'all' ? __('front.shop.orders.empty_search') : __('front.shop.orders.empty') }}
@else
@foreach ($orders as $order) @php $paid = $order->status === \App\Models\Order::STATUS_PAID; @endphp @endforeach
{{ __('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) }}
{{ __('front.shop.orders.summary', [ 'from' => Format::persianDigits((string) $orders->firstItem()), 'to' => Format::persianDigits((string) $orders->lastItem()), 'total' => Format::persianDigits((string) $orders->total()), ]) }}
{{ $orders->links() }}
@endif
@endsection