@if (($account->is_lot == 1))
Akaun SEWA
@elseif ( $account->account )
{{ $account->account->AwardType->keterangan ?? $account->account->acc_type_id }}
@elseif ($account->spimAccount)
Akaun SPIM
@elseif ($account->skipmaAccount)
Akaun SKIPMA
@endif
Nama Pemilik Akaun: {{ strtoupper($account->owner_name) }}
ID Pemilik: {{ strtoupper($account->owner_id) }}
@if ($account->is_lot)
Nilai Sewa (RM): {{ $accountlot->amaun_sewa }}
@elseif ( $account->account )
Nilai Akaun (RM): {{ $account->account->total_value }}
@elseif ($account->spimAccount)
Nilai Akaun (RM): {{ number_format($account->spimAccount->total_value, 2) }}
@elseif ($account->skipmaAccount)
Nilai Akaun (RM): {{ number_format($account->skipmaAccount->total_value, 2) }}
@endif
Tarikh pendaftaran emandate: {{ $account->registration_date }}
Emandate didaftarkan oleh: {{ strtoupper($account->user->fullname) }}
ID Pendaftar Emandate: {{ $account->user_id }}
Tarikh Mula: {{ $account->start_date }}
Tarikh Tamat:
@if( $account->end_date )
{{ $account->end_date }}
@else
Mengikut jadual bayaran balik
@endif
{{ $account->trx()->where('transaction_status', 'SUCCESS')->whereNotIn('transaction_type', ["ES", "EM", "ET"])->count() }} bayaran berjaya
@if ($account->is_lot)
{{-- display nothing if it is sewa lot --}}
@elseif( $account->scheduleDetail()->exists() && !$account->is_lot)
Jadual bayaran balik
@elseif( $account->scheduleDetailSkipma()->exists() && !$account->is_lot)
Jadual bayaran balik
@else
Akaun ini belum mempunyai jadual bayaran balik
@endif