{{-- ===================================================== Etebarit - by Gisoo Web Solutions ------------------------------------------------------ Gisoo.net ------------------------------------------------------ Copyright (c) 2026 Gisoo Web Solutions ===================================================== This code is protected by copyright ===================================================== File: index.blade.php ------------------------------------------------------ Use: The central-wallet page: net position, cash vs obligations, the operator deposit/withdraw modal, and the recent balance changes. ===================================================== --}} @extends('layouts.admin') @section('title', __('admin.central.title')) @section('breadcrumb') @endsection @section('page') @php $canManage = auth('admin')->user()->allowed('central.manage'); @endphp

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

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

@if ($canManage)
@endif
{{ __('admin.central.info') }} {{-- Negative net warning --}} @if ($net < 0)

{{ __('admin.central.negative_warning') }}

@endif {{-- Net position + cash/obligations --}}
$net >= 0, 'bg-gradient-to-l from-[#b70b1c] to-secondary-500' => $net < 0, ])>
{{ __('admin.central.net') }}
{{ $net < 0 ? '−' : '' }}@toman(abs($net)) {{ __('admin.toman') }}

{{ __('admin.central.net_hint') }}

{{-- Obligations breakdown --}}

{{ __('admin.central.breakdown_title') }}

{{-- Recent adjustments --}}

{{ __('admin.central.recent_title') }}

@forelse ($transactions as $transaction) @php $incoming = $transaction->type === \App\Models\Transaction::TYPE_ADMIN_TOPUP; @endphp
! $loop->first])>
{{ $transaction->primaryEntry()?->reasonLabel('admin.wallet_reasons') ?? __('admin.wallet_reasons.other') }}
{{ $transaction->external_reference }} @if ($transaction->admin) • {{ __('admin.central.by_admin') }} {{ $transaction->admin->name }}@endif • @jalaliDateTime($transaction->created_at)
$incoming, 'text-secondary-500' => ! $incoming]) dir="ltr">{{ $incoming ? '+' : '−' }}@toman($transaction->amount)
@empty

{{ __('admin.central.no_transactions') }}

@endforelse
{{-- ===== Adjust modal ===== --}} @if ($canManage) @endif
@endsection