@extends('site.layout.layout') @section('title',__('Wallet')) @section('content')

{{ __('Wallet') }}

{{ $transactions->sum('amount') ?? 0 }}

{{ __('Amount') }}

@if($lastUpdated)

{{ __('Last update') }}: {{ $lastUpdated }}

@endif

{{ $transactions->sum('store_earning') ?? 0 }}

{{ __('Total profits') }}

{{ $transactions->where('collect_status',1)->sum('store_earning') ?? 0 }}

{{ __('Total withdrawals') }}

{{ __('Transactions') }}

@include('site.transactions.transaction_cards', ['transactions' => $transactions])
@if($transactions->hasMorePages()) @php $total = $transactions->total(); $perPage = $transactions->perPage(); $currentPage = $transactions->currentPage(); $shown = $currentPage * $perPage; $shown = $shown > $total ? $total : $shown; $percentage = $total > 0 ? round(($shown / $total) * 100) : 0; @endphp

{{ __('Total ') }} {{ $shown }} / {{ $total }} {{ __('transaction') }}

@endif
@endsection @push('scripts') @endpush