@extends('layouts.frontend') @section('title', 'Wallet History | '. Config::get('siteSetting.site_name') ) @section('css') @endsection @section('content') @php $withdrawStatus = App\Models\SiteSetting::where('type', 'customer_withdraw_configure')->where('status', 1)->first(); @endphp
@include('users.inc.sidebar')
@if(Session::has('success'))
Success! {{Session::get('success')}}
@endif @if(Session::has('error'))
Error! {{Session::get('error')}}
@endif
@if($withdrawStatus)
Send Withdraw Request
@endif

Wallet history

@if(count($wallets)>0) @foreach($wallets as $index => $wallet) @endforeach @endif
SL Date Type Amount Commission Payment Info Status
{{ $index+1 }} {{\Carbon\Carbon::parse($wallet->created_at)->format(Config::get('siteSetting.date_format'))}} ({{\Carbon\Carbon::parse($wallet->created_at)->format('h:i:s A')}}) {{ $wallet->type }} @if($wallet->amount<0 || $wallet->type == 'withdraw') - {{Config::get('siteSetting.currency_symble'). str_replace('-', '', $wallet->amount) }} @else {{Config::get('siteSetting.currency_symble'). str_replace('+', '', $wallet->amount) }} @endif {{Config::get('siteSetting.currency_symble'). $wallet->commission}} Pay Method: {{ ($wallet->paymentGateway) ? $wallet->paymentGateway->method_name : $wallet->payment_method }}
@if($wallet->account_no) {{$wallet->account_no}}
@endif @if($wallet->transaction_details) {{$wallet->transaction_details}} @endif
@if($wallet->status == 'paid') {{$wallet->status}} @elseif($wallet->status == 'received') {{$wallet->status}} @elseif($wallet->status == 'cancel') {{$wallet->status}} @else {{$wallet->status}} @endif
@if($withdrawStatus) @endif @endsection @section('js') @endsection