@extends('layouts.app') @section('title', 'Packages Management') @section('content')
Manage internet packages and pricing
Total Packages
{{ $packages->count() }}
Active Subscribers
{{ $packages->sum(fn($p) => $p->customers_count ?? 0) }}
Avg. Price
Rp {{ number_format($packages->avg('price'), 0, ',', '.') }}
Monthly Revenue
Rp {{ number_format($packages->sum(fn($p) => $p->price * ($p->customers_count ?? 0)), 0, ',', '.') }}
| Package Name | Speed | Price | Subscribers | Status | Actions |
|---|---|---|---|---|---|
|
{{ $package->name }} {{ $package->description ?? 'No description' }} |
{{ $package->speed }} Mbps |
Rp {{ number_format($package->price, 0, ',', '.') }} per month |
{{ $package->customers_count ?? 0 }}
customers
|
{{ $package->is_active ? 'Active' : 'Inactive' }} | |
|
No packages found Create your first package |
|||||