@extends('admin.layouts.master-soyuz') @section('title', __('Wallet Settings | ')) @section('body') @component('admin.component.breadcumb',['secondactive' => 'active']) @slot('heading'){{ __('Wallet Settings') }}@endslot @slot('menu1'){{ __('Wallet Settings') }}@endslot @endcomponent @php $isOn = $wallet == 1; @endphp
{{-- Hero status --}}

{{ $isOn ? __('Wallet System is ACTIVE') : __('Wallet System is OFF') }}

{{ $isOn ? __('Customers can store credit and pay using their wallet balance.') : __('Toggle on the wallet to allow customers to add and spend wallet balance.') }}

{{-- Stats grid (only shown when ON) --}}
@php $tiles = [ ['label' => __('Active Wallet Users'), 'value' => $states['activeuser'], 'icon' => 'feather icon-users', 'color' => '#16a34a', 'bg' => '#dcfce7', 'help' => __('Counted active wallet users only')], ['label' => __('Total Wallet Users'), 'value' => $states['totaluser'], 'icon' => 'feather icon-user-plus', 'color' => '#3b6df0', 'bg' => '#dbeafe', 'help' => __('Active and inactive wallet users')], ['label' => __('Wallet Transactions'), 'value' => $states['wallettxn'], 'icon' => 'feather icon-bar-chart-line', 'color' => '#f59e0b', 'bg' => '#fef3c7', 'help' => __('Total transactions made on') . ' ' . config('app.name')], ['label' => __('Overall Balance'), 'value' => ' ' . $states['overallwalletbalance'], 'icon' => 'feather icon-dollar-sign', 'color' => '#a855f7', 'bg' => '#f3e8ff', 'help' => __('Overall balance of active wallet users'), 'raw' => true, 'negative' => $states['overallwalletbalance'] < 0], ['label' => __('Wallet Orders'), 'value' => $states['walletorders'], 'icon' => 'feather icon-shopping-cart', 'color' => '#06b6d4', 'bg' => '#cffafe', 'help' => __('Total orders paid via wallet')], ]; @endphp @foreach($tiles as $tile)

@if(!empty($tile['raw'])) {!! $tile['value'] !!} @else {{ $tile['value'] }} @endif

{{ $tile['label'] }}

{{ $tile['help'] }}
@endforeach
{{-- Transactions table --}}
{{ __('Wallet Transaction History') }}
# {{ __('TXN ID') }} {{ __('Note') }} {{ __('Type') }} {{ __('Amount') }} {{ __('Balance') }} {{ __('Date') }} {{ __('Time') }}
@endsection @section('custom-script') @endsection