@extends('layouts.portal') @section('title', 'Packages') @section('page_title', 'Service Packages') @section('page_subtitle', 'Manage service offerings and pricing') @section('sidebar') @include('admin.partials.sidebar', ['active' => 'packages']) @endsection @section('content')

All Packages

@if(request('type'))

Filtered by: {{ App\Models\Package::getTypes()[request('type')] ?? 'All Types' }}

@endif
Add Package
@if($packages->count() > 0)
@foreach($packages as $package)

{{ $package->name }}

{{ $package->code }}

{{ $package->is_active ? 'Active' : 'Inactive' }}

{{ $package->description }}

Type: {{ App\Models\Package::getTypes()[$package->type] ?? $package->type }}
Price: RM{{ number_format($package->price, 2) }}
Commission: {{ $package->agent_commission_rate }}%
@if($package->asset_limit || $package->liability_limit)
@if($package->asset_limit)
Assets: Max {{ $package->asset_limit }}
@endif @if($package->liability_limit)
Liabilities: Max {{ $package->liability_limit }}
@endif
@endif @if($package->allow_price_change)
Client can change price
@endif
Edit
@csrf @method('DELETE')
@endforeach
@else

No packages found.

Create your first package
@endif
@endsection