@extends('layouts.app') @section('title', 'View Bandwidth Item') @section('content')

View Bandwidth Item

Detailed information about {{ $item->name }}

Item Information
{{ $item->name }}
{{ $item->usage_count ?? 0 }} Usage
Created
{{ $item->created_at->format('M d, Y H:i') }}
Last Updated
{{ $item->updated_at->format('M d, Y H:i') }}

@if($item->serviceCategory) {{ $item->serviceCategory->name }} @if($item->serviceCategory->code)
Code: {{ $item->serviceCategory->code }} @endif @else No category assigned @endif

@if($item->provider) {{ $item->provider->name }} @else No provider assigned @endif

@if($item->description) {{ $item->description }} @else No description provided @endif

@if($item->buying_price) {{ number_format($item->buying_price, 2) }} @else Not set @endif

@if($item->selling_price) {{ number_format($item->selling_price, 2) }} @else Not set @endif

@if($item->buying_price && $item->selling_price)

@php $margin = $item->selling_price - $item->buying_price; $marginPercentage = $item->buying_price > 0 ? ($margin / $item->buying_price) * 100 : 0; @endphp {{ $margin >= 0 ? '+' : '' }}{{ number_format($margin, 2) }} ({{ number_format($marginPercentage, 1) }}%)

@endif
Quick Actions
View All Items
Item Statistics
{{ $item->usage_count ?? 0 }}
Usage Count
{{ $item->created_at->diffInDays(now()) }}
Days Active
@if($item->buying_price || $item->selling_price)
Pricing Information
@if($item->buying_price)
Buying Price: ${{ number_format($item->buying_price, 2) }}
@endif @if($item->selling_price)
Selling Price: ${{ number_format($item->selling_price, 2) }}
@endif @if($item->buying_price && $item->selling_price)

Profit: ${{ number_format($margin, 2) }}
@endif
@endif
Bandwidth Item Information
Bandwidth Item

This item represents a specific type of bandwidth service (e.g., GGC, FB, INT, LOCAL).

@endsection