@extends('admin.layouts.app') @section('main_content')

{{translate($title)}}

{{translate('Payment log list')}}
@forelse($paymentLogs as $paymentLog) @empty @endforelse
{{translate( "Time" )}} {{translate('User')}} {{translate('Method')}} {{translate('Amount')}} {{translate('Final Amount')}} {{translate('Status')}}
{{diff_for_humans($paymentLog->created_at)}}
{{get_date_time($paymentLog->created_at)}}
@if($paymentLog->user) {{(@$paymentLog->user->name)}}
{{(@$paymentLog->user->email)}} @else {{ @$paymentLog->order->billing_information->email ?? 'Guest User'}} @endif
{{(@$paymentLog->paymentGateway->name ?? 'N/A')}} {{round(($paymentLog->amount))}} {{default_currency()->name}} {{round(($paymentLog->final_amount))}} {{@$paymentLog->paymentGateway->currency->name ?? default_currency()->name}} @if($paymentLog->status == "1") {{translate('Pending')}} @elseif($paymentLog->status == "2") {{translate('Received')}} @elseif($paymentLog->status == "3") {{translate('Rejected')}} @endif
@include('admin.partials.not_found')
{{$paymentLogs->appends(request()->all())->links()}}
@endsection