@extends('layouts.genindex') @section('title') {{ request()->is('dijamin') ? 'Akaun Dijamin / Penjaga' : 'Akaun Anda' }} @endsection @section('subtitle', 'Bayaran fasiliti pembiayaan pelajaran, perniagaan atau sewa') @section('list') @if($accounts->count() <= 0)
@else @foreach($accounts as $account) @if($account->lots()->exists() && $lots_active) @foreach($account->lots as $lot)
No Ruang Sewa: {{ $lot->no_ruang_sewa }}
No Akaun: {{ $account->account_no }}
({{ $lot->desc_ruang_sewa ?? "Lot Sewa" }})
Nilai Sewa: RM {{ number_format($lot->amaun_sewa, 2) }}
Jumlah Tunggakan Sewa: RM {{ number_format($account->amount_outstanding, 2) }}
ID Pemilik: {{ strtoupper($account->user_id) }}
Status Direct Debit (e-Mandate): @if($lot->activeDD()) @endif {{ $lot->EmandateAccount->status ?? 'TIADA' }} @if($lot->activeDD()) @endif
Nama Pemilik Akaun: {{ strtoupper($account->owner_name) }}
Alamat: {{ $lot->address() }} @if( $lot->activeDD() )
Emandate didaftarkan oleh: {{ strtoupper($lot->EmandateAccount->user->fullname) }}
ID Pendaftar Emandate: {{ $lot->EmandateAccount->user_id }}
@endif
{{--

Buat Bayaran

--}}

Buat Bayaran

@if( !$lot->activeDD() )

Direct Debit

@endif {{--

SPIM

--}}

Butiran tambahan

@endforeach @else
{{ $account->account_no }}
({{ $account->AwardType->keterangan ?? $account->acc_type_id }})
Nilai: RM {{ $account->total_value }}
ID Pemilik: {{ strtoupper($account->user_id) }}
Status Direct Debit (e-Mandate): @if($account->activeDD()) @endif {{ $account->EmandateAccount->status ?? 'TIADA' }} @if($account->activeDD()) @endif {{--
--}}
Nama Pemilik Akaun: {{ strtoupper($account->owner_name) }} {{--
--}} {{-- Status Akaun: {{ strtoupper($account->StudentStatus->keterangan ?? $account->status) }} --}} @if( $account->activeDD() )
Emandate didaftarkan oleh: {{ strtoupper($account->EmandateAccount->user->fullname) }}
ID Pendaftar Emandate: {{ $account->EmandateAccount->user_id }}
@endif {{--
--}}

Buat Bayaran

@if( !$account->activeDD() ) {{--

Direct Debit

--}}

Direct Debit

@endif {{--

SPIM

--}} {{--

Butiran tambahan

--}}
@endif @endforeach @endif @endsection