@extends('layouts.merchant') @section('title') @lang('Merchant Dashboard') @endsection @section('breadcrumb')

@lang('Merchant Dashboard')

@endsection @section('content')
@lang('Wallets')
@foreach ($wallets as $item)
{{$item->currency->code}}

@lang($item->currency->curr_name)

{{amount($item->balance,$item->currency->type,2)}} {{$item->currency->code}}
@endforeach

@lang('Recent Transactions')

@forelse($recentTransactions as $trx) @empty @endforelse
@lang('Date') @lang('Transaction ID') @lang('Description') @lang('Remark') @lang('Amount') @lang('Details')
{{dateFormat($trx->created_at,'d-M-Y')}} {{$trx->trnx}} {{__($trx->details)}} {{ucwords(str_replace('_',' ',$trx->remark))}} {{$trx->type}} {{amount($trx->amount,$trx->currency->type,2)}} {{$trx->currency->code}}
@lang('No data found!')

@lang('Recent Withdraws')

@forelse ($recentWithdraw as $item) @empty @endforelse
@lang('Transaction') @lang('Amount') @lang('Charge') @lang('Total Amount') @lang('Method Name') @lang('Status') @lang('Date')
{{$item->trx}} {{amount($item->amount,$item->currency->type,2)}} {{$item->currency->code}} {{amount($item->charge,$item->currency->type,2)}} {{$item->currency->code}} {{amount($item->total_amount,$item->currency->type,2)}} {{$item->currency->code}} {{$item->method->name}} @if($item->status == 1) @lang('Accepted') @elseif($item->status == 2) @lang('Rejected') @else @lang('Pending') @endif {{dateFormat($item->created_at)}}
@lang('No data found!')
@endsection @push('script') @endpush