@extends('layouts.customer') @section('title', 'Welcome') @push('css') @endpush @section('content')
{{--
--}}

Home

{{--
--}} {{--
Apply New Season Card
--}}
@include('profile.menu')
My Account {{-- Edit --}}
@if ($user->user_type == 2) Corporate @else Individual @endif
{{ $user->cardHolder?->status?->label() }}
RM {{ Number::format($seasonCards->sum('rate.rate')) }}
@if($seasonCards->isNotEmpty()) @forelse ($seasonCards as $index => $card) @empty @endforelse
Active Cards
# Account No. Card No. Season Type Rate Card Status
{{ $index + 1 }} {{ $card->account_no ?? '-' }} {{ $card->card_no ?? '-' }} {{ $card->type?->name ?? '-' }} RM {{ number_format($card->effectiveRateAmount(), 2) }} {{ $card->status->label() ?? '-' }}
No card found
{{ $seasonCards->links() }} @else
No card found
@endif
List of Open Requests
@if ($seasonRequests->isNotEmpty()) @forelse ($seasonRequests as $index => $request ) @empty @endforelse
# Request for Request date Site Space Document Card Status Approval
{{ $seasonRequests->firstItem() + $index }} {{ $request->action ?? '--' }} {{ $request->request_time?->format('Y-m-d') ?? '-' }} {{ $request->site?->name }} {{ $request->seasonType?->name }} @if ($request->hasMedia($request->action->media())) @foreach($request->getMedia($request->action->media()) as $media) {{ $media?->file_name ?? '--' }}
@endforeach @else -- @endif
{{ $request->total_cards ?? 0 }} {{ $request->status->label() }} {{ $request->approval->label() }} @if ($request->isApproved() && $request->invoices->where('status', '!=', \App\Models\Traits\Enum\PaymentStatus::PAID)->count()) Pay {{-- @else--}} {{--
--}} {{-- @method('DELETE')--}} {{-- @csrf--}} {{-- --}} {{--
--}} @endif
No open request found
{{ $seasonRequests->links() }} @else
No request found
Request new card
@endif Show All
Invoice List {{-- Edit --}}
@if ($payments->isNotEmpty()) @forelse ($payments->reject(fn($p) => (!$p->isPaid() && $p->invoiceable) ) as $payment) @empty @endforelse
Invoice No Payment For Received Date Amount Status Invoice
{{ $payment->invoice_no ?? '--' }} {{ $payment->payment_for ?? '--' }} {{ $payment->received_time ?? '--' }} RM {{ $payment->amount }} {{ $payment->status->label() }} @if($payment->status->label() == 'Pending' || $payment->status->label() == 'Fail') Pay @else Invoice @endif
{{ $payments->links() }} @else
No Payment Found
@endif
@endsection @push('js') @endpush