@extends('layouts.app') @section('title', 'Application Details') @section('content')

Application Details

Back to List
@php $status = (string) ($application->status ?? ''); $statusClass = [ 'PENDING' => 'text-bg-warning', 'APPROVED' => 'text-bg-success', 'REJECTED' => 'text-bg-danger', 'ASSESSING' => 'text-bg-info', 'LOCKED' => 'text-bg-primary', ][$status] ?? 'text-bg-secondary'; $biz = $application->business; // may be null $own = optional($biz)->owner; // may be null $ownerFull = $own ? $own->full_name ?? trim(($own->first_name ?? '') . ' ' . ($own->middle_name ?? '') . ' ' . ($own->last_name ?? '')) : null; // tiny helpers $safe = fn($v) => e($v ?? '—'); $fmtPeso = fn($n) => is_null($n) ? '—' : '₱ ' . number_format((float) $n, 2); @endphp {{-- HEADER: real Application fields --}}
Permit No.
{{ $safe($application->permit_no) }}
Type
{{ $safe($application->type) }}
Tax Year
{{ (int) ($application->tax_year ?? 0) }}
Filed At
{{ optional($application->filed_at)->format('Y-m-d H:i') ?? '—' }}
Status
{{ $safe($status ?: '—') }}
Application ID
{{ (int) $application->id }}
Business ID
{{ $safe(optional($biz)->id) }}
Created
{{ optional($application->created_at)->format('Y-m-d H:i') ?? '—' }}
Updated
{{ optional($application->updated_at)->format('Y-m-d H:i') ?? '—' }}
@if (!empty($application->remarks))
Remarks
{{ e($application->remarks) }}
@endif
{{-- TABS --}}
{{-- OVERVIEW: REAL Business + Owner (null-safe) --}}
Owner
{{ $safe($ownerFull) }}
Mobile: {{ $safe(optional($own)->mobile_no) }}
Email: {{ $safe(optional($own)->email) }}
{{ $safe(optional($own)->address_line) }}, {{ $safe(optional($own)->barangay) }}, {{ $safe(optional($own)->city_municipality) }}, {{ $safe(optional($own)->province) }} {{ $safe(optional($own)->zipcode) }}
Business
Name: {{ $safe(optional($biz)->business_name) }}
Trade: {{ $safe(optional($biz)->trade_name) }}
Org Nature: {{ $safe(optional($biz)->organization_nature) }}
TIN: {{ $safe(optional($biz)->tin) }}
Capital: {{ $fmtPeso(optional($biz)->capital_investment) }}
{{ $safe(optional($biz)->address_line) }}, {{ $safe(optional($biz)->barangay) }}, {{ $safe(optional($biz)->city_municipality) }}, {{ $safe(optional($biz)->province) }} {{ $safe(optional($biz)->zipcode) }}
Control Code: {{ $safe(optional($biz)->control_code) }}
Status: {{ $safe(optional($biz)->status) }}
{{-- ASSESSMENT (static placeholder) --}}
Fees Breakdown
Code Description Basis Qty Rate Amount Surcharge Interest Total
BUS-TAX Business Tax (Retail) Gross: ₱3,500,000 x 1.5% 1 52,500.00 0.00 0.00 52,500.00
MP-FEE Mayor’s Permit Fee Fixed 1 2,000.00 2,000.00 0.00 0.00 2,000.00
SAN-FEE Sanitary Inspection Fee Heads: 10 x ₱100 10 100.00 1,000.00 0.00 0.00 1,000.00
BFP-FEE Fire Safety Inspection (BFP) Schedule-based 1 1,500.00 1,500.00 0.00 0.00 1,500.00
Sub-Total: 57,000.00 0.00 0.00 57,000.00
{{-- BILLING / RECEIPTS (static placeholder) --}}
Billing & Payments
OR No. Date Amount Cashier Status
OR-2025-000111 2025-01-10 10:22 57,000.00 cashier01 POSTED
{{-- ENDORSEMENTS (static placeholder) --}}
Health Zoning Engineering BFP
{{-- /tab-content --}}
@endsection @push('scripts') @endpush