@php
if($user->hasRole(['super-admin', 'admin'])) {
$layoutDirectory = 'layouts.app';
} else {
$layoutDirectory = 'layouts.customer';
}
@endphp
@extends($layoutDirectory)
@section('title', 'Account settings')
@push('css')
@endpush
@section('content')
@cannot('access-admin-panel')
@include('profile.menu')
@endcannot
{{--
Next Renewal
| Date |
Charge |
| No record found |
--}}
Past Invoices
| Date |
Payment |
Status |
Invoice |
@forelse ($payments as $payment)
| {{ $payment->received_time->format('d/m/Y') ?? '-' }} |
RM {{ $payment->amount ?? '-' }} |
{{ $payment->status->label() }} |
|
@empty
| No record found |
@endforelse
@endsection