@extends('layouts.app') @section('title', 'Package Details') @section('content')
@include('admin.partials.sidebar')
@include('admin.partials.topbar')

{{ $package->name }}

Package Details

Package Information

Name

{{ $package->name }}

Speed

{{ $package->speed }} Mbps

Price

Rp {{ number_format($package->price, 0, ',', '.') }}

Tax Rate

{{ $package->tax_rate ?? 0 }}%

Status

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

Mikrotik Profile

{{ $package->mikrotik_profile ?? '-' }}

Description

{{ $package->description ?? '-' }}

Statistics

Total Customers {{ $package->customers->count() }}
Active Customers {{ $package->customers->where('status', 'active')->count() }}
Monthly Revenue Rp {{ number_format($package->price * $package->customers->where('status', 'active')->count(), 0, ',', '.') }}

Customers Using This Package

@forelse($package->customers->take(10) as $customer) @empty @endforelse
Name Phone Status Join Date
{{ $customer->name }} {{ $customer->phone ?? '-' }} {{ ucfirst($customer->status) }} {{ $customer->join_date ? $customer->join_date->format('d M Y') : '-' }}
No customers using this package
@endsection