Anda tidak mempunyai akaun/transaksi SPIM.
@else
@foreach($accounts as $account)
{{ $account->account_no }}
Nama Pemilik Akaun:
{{ strtoupper($account->owner_name) }}
ID Pemilik Akaun:
{{ strtoupper($account->user_id) }}
Nilai Akaun (RM):
{{ number_format($account->total_value,2) }}
Sila pastikan butiran adalah tepat sebelum meneruskan pendaftaran direct debit (e-mandate)
{{-- this isn't necessary for now. Link up accounts later if/when the need arises --}}
{{-- @if( $account->account()->exists() )
({{ $account->account->AwardType->keterangan ?? $account->account->acc_type_id }})
@endif --}}
{{-- Status is meant as a 0/1 active flag for backend --}}
{{--
Status: {{ $account->status }}
Butiran tambahan
--}}
{{-- these details unnecessary for now for SpimAccount --}}
{{--
Tarikh Mula: {{ $account->start_date }}
@if($account->end_date)
Tarikh Tamat: {{ $account->end_date }}
@endif
SPIM didaftarkan oleh:
{{ strtoupper($account->user->fullname) }}
ID Pendaftar SPIM:
{{ $account->user_id }}
Tarikh SPIM Dikemaskini:
{{ $account->updated_on }}
SSM No.:
{{ strtoupper($account->ssm_no) }}
--}}
{{-- SpimAccount does not have a schedule (jadual bayaran balik). This is a characteristic of Account --}}
{{-- @if($account->scheduleDetailSpim()->exists())
Jadual bayaran balik
@endif --}}
{{--
--}}
{{-- These are EmandateAccount attributes, not applicable for SpimAccount --}}
{{-- @if( auth()->user()->can('maintenance', $account) )
Pengubahsuaiani (Maintenance)
@endif
@if( auth()->user()->can('terminate', $account) )
Penamatan
@endif
--}}
@if ($account->activeDD())
eMandate Aktif
@else
Direct Debit
{{--
Direct Debit
--}}
@endif
{{-- @endif --}}
{{-- Both of these are EmandateAccount attributes, SpimAccount is meant as a substitute for Account, not EmandateAccount --}}
{{--
{{ $account->trx()->count() }} transaksi
Senarai transaksi
--}}
@endforeach
@endif
@endsection