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

{{translate($title)}}

{{translate('Transaction Log List')}}
@if(request()->routeIs('admin.report.user.transaction')) @elseif(request()->routeIs('admin.report.seller.transaction')) @elseif(request()->routeIs('admin.report.deliveryman.transaction')) @else @endif @if(request()->routeIs('admin.report.seller.transaction') || request()->routeIs('admin.report.deliveryman.transaction')) @endif @forelse($transactions as $transaction) @if($transaction->user) @elseif($transaction->seller_id) @elseif($transaction->deliveryman_id) @else @endif @if(request()->routeIs('admin.report.seller.transaction') || request()->routeIs('admin.report.deliveryman.transaction')) @endif @empty @endforelse
{{translate('Date')}}{{translate('Customer')}}{{translate('Seller')}}{{translate('Deliveryman')}} {{translate('Guest')}} {{translate('Transaction ID')}} {{translate('Amount')}} {{translate('Post Balance')}} {{translate('Details')}}
{{diff_for_humans($transaction->created_at)}}
{{get_date_time($transaction->created_at)}}
{{@$transaction->user->name}}
{{(@$transaction->user->email)}}
{{@$transaction->seller->name}}
{{(@$transaction->seller->email)}}
{{@$transaction->deliveryman->first_name}}
{{(@$transaction->deliveryman->email)}}
{{ @$transaction->guest_user->email ?? 'Guest User'}} {{(@$transaction->transaction_number)}} {{$transaction->transaction_type == "+" ? '+' : '-'}}{{round(($transaction->amount))}} {{default_currency()->name}} {{round(($transaction->post_balance))}} {{default_currency()->name}} {{$transaction->details }}
@include('admin.partials.not_found')
{{$transactions->appends(request()->all())->links()}}
@endsection