@extends('layouts.app') @section('title', 'NTTN Link Details') @section('content')

NTTN Link Details

View detailed information about this NTTN link

Back to User Profile
Link Information
@if($nttnLink->updatedBy) @endif
Link ID: #{{ $nttnLink->id }}
Link Name: {{ $nttnLink->link_name }}
Customer: {{ $nttnLink->customer->name ?? $nttnLink->customer->company_name ?? '-' }}
NTTN Item: {{ $nttnLink->item->name ?? '-' }}
NTTN Individual Item Price: @if(isset($itemPrice) && $itemPrice) ৳ {{ number_format($itemPrice, 2) }} @else - @endif
Description: {{ $nttnLink->description ?? '-' }}
Quantity: {{ number_format($nttnLink->quantity, 2) }}
Status: @if($nttnLink->status == 'active') Active @else Inactive @endif
Created By: {{ $nttnLink->createdBy->name ?? 'N/A' }}
Created At: {{ $nttnLink->created_at->format('d M Y, h:i A') }}
Updated By: {{ $nttnLink->updatedBy->name }}
Updated At: {{ $nttnLink->updated_at->format('d M Y, h:i A') }}
Sell Rates
Sell Rate: ৳ {{ number_format($nttnLink->sell_rate, 2) }}
Sell VAT: {{ number_format($nttnLink->sell_vat, 2) }}%
Total Sell Amount: ৳ {{ number_format(($nttnLink->sell_rate + ($nttnLink->sell_rate * $nttnLink->sell_vat / 100)) * $nttnLink->quantity, 2) }}
Cast Rates
Cast Rate: ৳ {{ number_format($nttnLink->cast_rate, 2) }}
Cast VAT: {{ number_format($nttnLink->cast_vat, 2) }}%
Total Cast Amount: ৳ {{ number_format(($nttnLink->cast_rate + ($nttnLink->cast_rate * $nttnLink->cast_vat / 100)) * $nttnLink->quantity, 2) }}
Profit/Loss
@php $totalSellAmount = ($nttnLink->sell_rate + ($nttnLink->sell_rate * $nttnLink->sell_vat / 100)) * $nttnLink->quantity; $totalCastAmount = ($nttnLink->cast_rate + ($nttnLink->cast_rate * $nttnLink->cast_vat / 100)) * $nttnLink->quantity; $profitLoss = $totalSellAmount - $totalCastAmount; @endphp
Total Sell Amount: ৳ {{ number_format($totalSellAmount, 2) }}
Total Cast Amount: ৳ {{ number_format($totalCastAmount, 2) }}
Profit/Loss: ৳ {{ number_format($profitLoss, 2) }}
@if($nttnLink->vlans->count() > 0)
VLANs ({{ $nttnLink->vlans->count() }})
@foreach($nttnLink->vlans as $index => $vlan) @endforeach
# VLAN Name VLAN ID Description Status Created At Action
{{ $index + 1 }} {{ $vlan->vlan_name }} {{ $vlan->vlan_id ?? '-' }} {{ $vlan->description ?? '-' }} @if($vlan->status == 'active') Active @else Inactive @endif {{ $vlan->created_at->format('d M Y, h:i A') }}
@else
No VLANs found for this link.
@endif
@push('scripts') @endpush @endsection