@extends('layouts.app') @section('title', 'Packages - ISP ERP System') @section('page-title', 'Packages Management') @section('content')

Packages Management

Manage internet packages and pricing

All Packages
@if(\App\Helpers\PermissionHelper::isSuperUser(auth()->id())) Showing all packages (Super User) @else @php $userBranchId = auth()->user()->branch_id; $hasSubBranches = $userBranchId ? \App\Models\Branch::where('parent_branch_id', $userBranchId)->exists() : false; @endphp @if($hasSubBranches) Showing packages from your main branch and all sub branches (ISP User) @else Showing packages from your branch only (Sub Branch User) @endif @endif
@if(session('success')) @endif @if(session('error')) @endif @if($packages->count() > 0)
@foreach($packages as $package) @endforeach
ID Package Name Branch Created By Description Price Speed (Mbps) Status Created Actions
{{ $package->id }}
{{ $package->name }}
@if($package->branch)
{{ $package->branch->name }} @if($package->branch->code) {{ $package->branch->code }} @endif
@else - @endif
@if($package->user)
{{ $package->user->name }} {{ $package->user->email }}
@else - @endif
@if($package->description) {{ Str::limit($package->description, 50) }} @else - @endif BDT{{ number_format($package->price, 2) }} @if($package->speed_mbps) {{ $package->speed_mbps }} Mbps @else - @endif @if($package->is_active) Active @else Inactive @endif {{ $package->created_at->format('M d, Y') }}
@csrf @method('PATCH')
@csrf @method('DELETE')
{{ $packages->links() }}
@else
No Packages Found

Start by creating your first package.

Add New Package
@endif
@endsection @section('styles') @endsection