@extends('layout') @section('title','Wallet Transaction') @section('content')
Wallet Transaction History
@php $sn=1; @endphp @foreach($wallet as $wallets) @php $difference = \Carbon\Carbon::now()->diffInDays(\Carbon\Carbon::parse($wallets->created_at)) @endphp @endforeach
# Transaction ID Tx. Date Tx. Type Amount Updated Date Status Remarks Action
{{$sn++}}
{{$wallets->tx_id}}
{{$wallets->tx_date}} @if($wallets->tx_type == 1)Online @else Offline @endif Є{{$wallets->amount}}/- {{$wallets->updated_at}} @if($wallets->status == 1) Success @else Pending @endif @php $parts = mb_split("\s", $wallets->remarks); $final_remarks = ""; $newLineCount = 10; $wordsCount = 0; foreach ($parts as $part) { if($wordsCount < $newLineCount){ $final_remarks = $final_remarks . " ". $part; $wordsCount +=1; }else{ $final_remarks = $final_remarks . "
". $part; $wordsCount = 0; } } echo $final_remarks ; @endphp
@if($wallets->status == 0) @if($difference > 2) Raise a Dispute @else
Wait for Approval
@endif @endif
@endsection