@extends('admin.layouts.layout') @section('title', 'View Property Age Fee: $' . number_format($propertyAgeFee->fee, 2)) @section('content')

View Property Age Fee: ${{ number_format($propertyAgeFee->fee, 2) }}

@if($permission['edit'] ?? true) Edit Fee @endif @if($permission['index'] ?? true) Back to Fees @endif
Property Age Fee Details

${{ number_format($propertyAgeFee->fee, 2) }}

{{ $propertyAgeFee->constructed_from }} - {{ $propertyAgeFee->constructed_to }}

@if($propertyAgeFee->service) {{ $propertyAgeFee->service->service_name }} @else No service assigned @endif

{{ $propertyAgeFee->sort_order ?? 0 }}

{{ $propertyAgeFee->tenant ? $propertyAgeFee->tenant->name : 'N/A' }}

{{ $propertyAgeFee->constructed_to - $propertyAgeFee->constructed_from }} years

@if($propertyAgeFee->service)
Service Name: {{ $propertyAgeFee->service->service_name }}
Service Type: @if($propertyAgeFee->service->service_type) {{ $propertyAgeFee->service->service_type }} @else Not specified @endif
Duration: @if($propertyAgeFee->service->duration) {{ $propertyAgeFee->service->duration }} hour{{ $propertyAgeFee->service->duration > 1 ? 's' : '' }} @else Not specified @endif
Fee Type: {{ ucfirst(str_replace('_', ' ', $propertyAgeFee->service->fee_type)) }}
@endif
This fee applies to properties constructed between:
  • Start Year: {{ $propertyAgeFee->constructed_from }}
  • End Year: {{ $propertyAgeFee->constructed_to }}
  • Additional Fee: ${{ number_format($propertyAgeFee->fee, 2) }}
Created: {{ $propertyAgeFee->created_at ? \App\Helpers\Helper::showdate($propertyAgeFee->created_at) : 'N/A' }}
Last Updated: {{ $propertyAgeFee->updated_at ? \App\Helpers\Helper::showdate($propertyAgeFee->updated_at) : 'N/A' }}
@if($propertyAgeFee->service)
Other Fees for {{ $propertyAgeFee->service->service_name }}
@php $relatedFees = \App\Models\PropertyAgeFee::where('service_id', $propertyAgeFee->service_id) ->where('id', '!=', $propertyAgeFee->id) ->orderBy('constructed_from') ->get(); @endphp @if($relatedFees->count() > 0)
@foreach($relatedFees as $relatedFee) @endforeach
Construction Period Fee Amount Sort Order Actions
{{ $relatedFee->constructed_from }} - {{ $relatedFee->constructed_to }} ${{ number_format($relatedFee->fee, 2) }} {{ $relatedFee->sort_order }} @if($permission['show'] ?? true) @endif @if($permission['edit'] ?? true) @endif
@else

No other property age fees found for this service.

@endif
@endif
@endsection @push('page_css') @endpush