@section('title') View Application Summary @endsection @section('breadcrumbs') {{ __('Application Number: ' . $application->application_no) }} @endsection

{{ __('Application') }}

{{ $application->application_no ?? '-' }}
{{ '-' }}
{{ ucwords(str_replace('_', ' ', $application->payment->pricing->lane ?? '-')) ?? '-' }}
{{ ucwords(str_replace('_', ' ', $application->type ?? '-')) ?? '-' }}
{{ $application->certificate_no ?? '-' }}
{{ ucwords(str_replace('_', ' ', $application->status ?? '-')) ?? '-' }}

{{ __('Company') }}

{{ $application->company->company_name ?? '-' }}
{{ $application->company->registration_no ?? '-' }}
{{ $application->company->old_registration_no ?? '-' }}
{{ $application->company->phone_no ?? '-' }}
@php $fullAddress = collect([ $application->company->address_1, $application->company->address_2, $application->company->address_3, ]) ->filter() ->implode(', '); @endphp {{ $fullAddress ?: '-' }}
{{ $application->company->old_registration_no ?? '-' }}
{{ $application->company->postcode ?? '-' }}
@php $fullAddress = collect([ $application->company->address_1, $application->company->address_2, $application->company->address_3, ]) ->filter() ->implode(', '); @endphp {{ $fullAddress ?: '-' }}
{{ $application->company->postcode ?? '-' }}
{{ $application->company->city ?? '-' }}
{{ $application->company->state->name ?? '-' }}
{{ formatPhoneNumber($application->company->fax_no) ?? '-' }}

{{ __('Application History') }}

@foreach ($application->logs->sortBy('created_at') as $log) @if ($log->user) @if ($log->user_id == $application->user_id) @else @endif @else @endif @endforeach
Date/Time Status User Name (Role) Remark
{{ $log->created_at->format('d-m-Y h:i a') }} {{ $log->status }}{{ $log->user?->name }} (Applicant){{ $log->user?->name }} ({{ $log->user?->roles?->first()?->name }})-{{ $log->remarks }}

{{ __('Contact Person') }}

@foreach ($contact as $index => $item) @endforeach
{{ __('Company PIC Member ' . ($index + 1)) }}
{{ __('Name') }} {{ __('Designation') }} {{ __('Mobile Phone') }} {{ __('Email') }}
{{ $item['name'] }} {{ $item['designation'] }} {{ $item['phone_no'] }} {{ $item['email'] }}

{{ __('Service Details') }}

{{ $application->product_group->parent->parent->name }}
{{ $application->product_group->parent->name }}
{{ $application->product_group->name }}
{{ __('Service List') }}
{{ __('No.') }} {{ __('Service Name') }} {{ __('Description') }} {{ __('Document Uploaded') }}
{{ '1' }} {{ $application->services->name }} {{ $application->services->description }} @if ($service->attachments->isNotEmpty())
    @foreach ($service->attachments as $attachment)
  • {{ \App\Models\ServiceAttachment::TYPE[$attachment->type] }} [View Here]
  • @endforeach
@else No documents available @endif

{{ __('Certification Details') }}

{{ __('Sustainable Policy') }}

{{ 'Policy is a documented policy outlining green initiatives implemented at your premises and/or office such as 3R practices, the use of LED Lighting, energy efficient equipment, and others environmentally-friendly activities.' }}

{{ __('Policy Submitted') }} {{ __('Document Uploaded') }}
{{ $application->policy_name }} @php $policy = $application->attachments->where('type', 'policy')->first(); @endphp @if ($policy) [View Here] @else No documents available @endif
{{ __('Certificate of Competency') }}

{{ 'Relevant document related to the products applied, recognized by MGTC. (e.g., certificate, reports, and test reports)' }}

{{ __('Certificate of Competency Submitted') }} {{ __('Document Uploaded') }}
{{ __('Certificate of Competency for SEDA Malaysia Grid-Connected Photovoltaic Systems Design Course') }} @php $policy = $application->attachments->where('type', 'certificate_competency')->first(); @endphp @if ($policy) [View Here] @else No documents available @endif
{{ __('Certificate of Perakuan Pendaftaran Pembekal Perkhidmatan Fotovoltaik Suria Berdaftar') }} @php $policy = $application->attachments->where('type', 'certificate_perakuan')->first(); @endphp @if ($policy) [View Here] @else No documents available @endif
{{ __('Standard Operating Procedure (SOP)') }}

{{ 'The SOP must detail the processes involved in delivering your services, from start to completion, with a focus on environmental considerations (e.g., cleaning services or green landscaping). It should comprehensively address energy management, water usage, waste management, pollution control, safety measures, and any other relevant processes that support your sustainable service offerings.' }}

{{ __('SOP Submitted') }} {{ __('Document Uploaded') }}
{{ $application->sop_name }} @php $policy = $application->attachments->where('type', 'certificate_sop')->first(); @endphp @if ($policy) [View Here] @else No documents available @endif

{{ __('Payment Status') }}

{{ $application->payment->invoice_no ?? '-' }}
{{ $application->payment->created_at->format('d-m-Y') ?? '-' }}
{{ $application->payment?->total ? 'RM '.$application->payment?->total : '-' }}
{{ $application->payment?->payment_medium ? App\Models\Payment::PAYMENT_MEDIUM[$application->payment->payment_medium] : '-' }}
{{ $application->payment?->payment_method ?? '-' }}
{{ $application->payment->payment_at->format('d-m-Y') ?? '-' }}
{{ $application->payment?->total ? 'RM '.$application->payment->total : '-' }}
{{ $application->payment?->verified_at ? 'Verified on '.$application->payment->verified_at_formatted : 'Pending' }}
{{ $application->payment?->verified_by ? $application->payment->verified_by : '-' }}
@php $policy = $application->attachments->where('type', 'certificate_sop')->first(); @endphp @if ($policy) [View Here] @else No documents available @endif
{{-- if the role is screening officer @if (auth()->check() && auth()->user()->hasRole('Screening Officer'))

{{ __('Screening') }}

@csrf @method('PUT')
@endif --}}
{{ __('Cancel') }} {{-- if the role is screening officer --}} @if (auth()->check() && auth()->user()->hasRole('Screening Officer')) @elseif( (auth()->check() && auth()->user()->hasRole('Junior Evaluator')) || (auth()->check() && auth()->user()->hasRole('Senior Evaluator'))) @if ($application->is_notification_sent != true) {{ __('Completion Notification') }} @endif {{ __('Evaluate') }} @elseif(auth()->check() && (auth()->user()->hasRole('Project Leader') || auth()->user()->hasRole('Project Director') || auth()->user()->hasRole('administrator'))) @php if (auth()->user()->hasRole('Project Leader')) { $role = 'project-leader'; } elseif (auth()->user()->hasRole('Project Director')) { $role = 'project-director'; } else { $role = 'admin'; } @endphp {{ __('Proceed') }} @endif
@push('scripts') @endpush