{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: index.blade.php ------------------------------------------------------ Use: Gateway orders for the admin, with the money-flow modal: total, shop share, merchant fee and every transaction the order was paid with. ===================================================== --}} @extends('layouts.admin') @section('title', __('admin.orders.title')) @section('breadcrumb') @endsection @section('page')

{{ __('admin.orders.title') }}

{{ __('admin.orders.subtitle') }}

{{ __('admin.orders.info') }}
@foreach (__('admin.orders.filters') as $key => $label) $status === $key, 'text-ink-muted hover:text-primary-600' => $status !== $key, ])>{{ $label }} @endforeach
@if ($status !== 'all') @endif
@forelse ($orders as $order) @php $parts = $order->transactions->map(fn ($transaction) => [ 'label' => $transaction->primaryEntry()?->reasonLabel('admin.wallet_reasons') ?? __('admin.wallet_reasons.other'), 'code' => \App\Support\Format::persianDigits($transaction->code), 'amount' => ($transaction->isIncoming() ? '+' : '−').\App\Support\Format::tomanFa($transaction->amount), 'incoming' => $transaction->isIncoming(), 'status' => __("admin.transactions.statuses.{$transaction->status}"), 'successful' => $transaction->isSuccessful(), ])->values(); $payload = [ 'title' => $order->code, 'shop' => $order->shop->name, 'buyer' => $order->user?->fullName() ?? __('admin.orders.no_buyer'), 'mobile' => \App\Support\Format::persianDigits($order->user?->mobile ?? ''), 'merchantOrder' => $order->merchantReference() ?? '—', 'merchantOrderLtr' => ! $order->isLinkPayment(), 'description' => $order->isLinkPayment() ? ($order->description ?: __('admin.orders.no_description')) : null, 'reference' => \App\Support\Format::persianDigits($order->reference_id ?? '—'), 'ip' => $order->ip ?? '—', 'amount' => \App\Support\Format::tomanFa($order->amount), 'share' => \App\Support\Format::tomanFa($order->shop_share), 'fee' => \App\Support\Format::tomanFa($order->merchant_fee), 'date' => \App\Support\Format::jalaliDateTimeFa($order->paid_at ?? $order->created_at), 'status' => __("admin.orders.statuses.{$order->status}"), 'successful' => $order->isPaid(), 'parts' => $parts, ]; @endphp @empty @endforelse
{{ __('admin.orders.columns.code') }} {{ __('admin.orders.columns.user') }} {{ __('admin.orders.columns.shop') }} {{ __('admin.orders.columns.amount') }} {{ __('admin.orders.columns.method') }} {{ __('admin.orders.columns.date') }} {{ __('admin.orders.columns.status') }} {{ __('admin.orders.columns.details') }}
{{ $order->code }} @if ($order->user) {{ $order->user->fullName() }} @else {{ __('admin.orders.no_buyer') }} @endif {{ $order->shop->name }} @toman($order->amount) {{ __('admin.toman') }} $order->isPaid(), 'bg-[#fff5e6] text-amber-600' => $order->isPending(), 'bg-secondary-50 text-secondary-500' => ! $order->isPaid() && ! $order->isPending(), ])>{{ $parts->isEmpty() ? __('admin.orders.transaction_count_none') : __('admin.orders.transaction_count', ['count' => \App\Support\Format::persianDigits((string) $parts->count())]) }} @jalaliDateTime($order->created_at) $order->isPaid(), 'bg-[#fff5e6] text-amber-600' => $order->isPending(), 'bg-secondary-50 text-secondary-500' => ! $order->isPaid() && ! $order->isPending(), ])>{{ __("admin.orders.statuses.{$order->status}") }} {{ __('admin.orders.details') }}
{{ __('admin.orders.empty') }}
@if ($orders->hasPages())
{{ $orders->links() }}
@endif {{-- ===== Money flow ===== --}}
@endsection