@extends('layouts.merchant') @section('breadcrumb') @endsection @section('content') @php $notEmpty = fn ($v) => !($v === null || $v === ''); $fields = [ [tr('unique_id'), 'ri-hashtag', $ledger['unique_id'] ?? null], [tr('transaction_id'), 'ri-exchange-dollar-line', $ledger['transaction_id'] ?? null], [ tr('transaction_type'), 'ri-list-check', $ledger['transaction_type'] ? transaction_type_formatted($ledger['transaction_type']) : null ], [tr('paid_to'), 'ri-bank-line', $ledger['paid_to'] ?? null], [tr('amount'), 'ri-money-dollar-circle-line', $ledger['amount'] ?? null], [tr('balance'), 'ri-wallet-3-line', $ledger['balance'] ?? null], [tr('created_at'), 'ri-time-line', $ledger['created_at'] ?? null], ]; @endphp

{{ tr('ledger_details') }}

@foreach ($fields as [$label, $icon, $value]) @if ($notEmpty($value))
{{ $label }}
{{ $value }}
@endif @endforeach
@endsection