@extends('admin.layouts.master') @push('css') @endpush @section('page-title') @include('admin.components.page-title',['title' => __($page_title)]) @endsection @section('breadcrumb') @include('admin.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("admin.dashboard"), ] ], 'active' => __("Dashboard")]) @endsection @section('content')
@php $add_money_total = $trx_add_money->count(); $add_money_pending = $trx_add_money->where('status',payment_gateway_const()::STATUSPENDING)->count(); $add_money_success = $trx_add_money->where('status',payment_gateway_const()::STATUSSUCCESS)->count(); $add_money_success_with_pending_count = ($add_money_pending + $add_money_success); $one_percent_of_pending_success_add_money = (($add_money_success_with_pending_count / 100) == 0) ? 1 : ($add_money_success_with_pending_count / 100); $one_percent_of_total_add_money = (($add_money_total / 100) == 0) ? 1 : ($add_money_total / 100); @endphp
{{ __("Add Money Request") }}
{{ __("Success") }} {{ $add_money_success?? "" }} {{ __("Pending") }} {{ $add_money_pending?? "" }}
{{ floor(($add_money_pending / $one_percent_of_pending_success_add_money)) }}%
@php $money_out_total = $trx_money_out->count(); $money_out_pending = $trx_money_out->where('status',payment_gateway_const()::STATUSPENDING)->count(); $money_out_success = $trx_money_out->where('status',payment_gateway_const()::STATUSSUCCESS)->count(); $one_percent_of_total_money_out = (($money_out_total / 100) == 0) ? 1 : ($money_out_total / 100); @endphp
{{ __("Withdraw Money Request") }}
{{ __("Completed") }} {{ $money_out_success?? "" }} {{ __("Pending") }} {{ $money_out_pending?? "" }}
{{ floor($money_out_pending / $one_percent_of_total_money_out) }}%
@php $support_ticket_pending = $support_ticket->where('status',support_ticket_const()::PENDING)->count(); $support_ticket_solved = $support_ticket->where('status',support_ticket_const()::SOLVED)->count(); $support_ticket_active = $support_ticket->where('status',support_ticket_const()::ACTIVE)->count(); $support_pending_solved_count = ($support_ticket_pending + $support_ticket_solved); $one_percent_of_support_pending_solved_count = (($support_pending_solved_count / 100) == 0) ? 1 : ($support_pending_solved_count / 100); @endphp
{{ __("Active Tickets") }}
{{ __("Pending") }} {{ $support_ticket_pending?? "" }} {{ __("Solved") }} {{ $support_ticket_solved?? "" }}
{{ floor(($support_ticket_pending / $one_percent_of_support_pending_solved_count)) }}%
@php $total_user = $users->count(); $active_users = $users->where('status',global_const()::ACTIVE)->count(); $banned_users = $users->where('status',global_const()::BANNED)->count(); $one_percent_of_total_users = (($total_user / 100) == 0) ? 1 : ($total_user / 100); @endphp
{{ __("Total Users") }}
{{ __("Active") }} {{ $active_users?? "" }} {{ __("Unverified") }} {{ $banned_users?? "" }}
{{ floor($total_user / $one_percent_of_total_users) }}%
@if ($add_money_success>0)
{{ __("Add Money Balance") }}
@endif @foreach ($add_money_by_currency as $item) @php $currency = App\Models\Admin\Currency::where('code',$item->request_currency)->first(); @endphp @if ($currency != null)
{{ $currency->name }}
flag
@endif @endforeach
@if ($money_out_success>0)
{{ __("Withdraw Money Balance") }}
@endif @foreach ($money_out_by_currency as $item) @php $currency = App\Models\Admin\Currency::where('code',$item->request_currency)->first(); @endphp @if ($currency != null)
{{ $currency->name }}
flag
@endif @endforeach
{{ __("Monthly Add Money Chart") }}
{{ __("Monthly Money Out Chart") }}
{{ __("User Analytics") }}
{{ __("Latest Add Moeny") }}
@forelse ($latest_transactions as $key => $item) @empty @include('admin.components.alerts.empty',['colspan' => 9]) @endforelse
{{ __("full Name")}} {{ __("Email")}} {{ __("Username")}} {{ __("Phone")}} {{ __("Amount")}} {{ __("Gateway")}} {{ __("Status")}} {{ __("Time")}}
{{ @$item->creator->full_name }} {{ @$item->creator->email }} {{ @$item->creator->username }} {{ $item->creator->full_mobile ?? '' }} {{ get_amount($item->request_amount,$item->request_currency) }} @if ($item?->gateway_currency?->gateway?->name ?? false) {{ $item?->gateway_currency?->gateway?->name ?? "" }} @else {{ $item->remark }} @endif {{ $item->string_status->value }} {{ $item->created_at->format('d-m-y h:i:s A') }}
@endsection @push('script') @endpush