@extends('layouts.dashboard') @section('content')

Transaction History

@if(auth()->user()->transactions()->count() == 0)

You haven’t made any transaction yet.

@else
@foreach($transactionslogs as $transaction) @endforeach
Date Status Transaction type Amount Action
{{$transaction->created_at->format('d.m.Y')}} {{$transaction->created_at->format('H:i')}}
{{$transaction->status->name ?? $transaction->transactionable->status->name}}
{{$transaction->type}}
{{$transaction->transactionable->displayamount ?? $transaction->amount}}
@if($transaction->transactionable_type == \App\Models\Bankfunding::class && !$transaction->transactionable->approved()) @endif
@endif
@endsection