@extends('layouts.app') @section('title', 'NTTN Links') @section('content')
Manage NTTN links
| ID | Link Name | Customer | Item | Quantity | Sell Rate | Sell VAT | Total Sell VAT | Total Sell Amount | Cast Rate | Cast VAT | Total Cast VAT | Total Cast Amount | Profit & Loss | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $link->id }} | {{ $link->link_name }} | {{ $link->customer->company_name ?? $link->customer->name ?? '-' }} | {{ $link->item->name ?? '-' }} | {{ number_format($link->quantity, 2) }} | ৳ {{ number_format($link->sell_rate, 2) }} | {{ number_format($link->sell_vat, 2) }}% | ৳ {{ number_format(($link->sell_rate * $link->sell_vat / 100) * $link->quantity, 2) }} | ৳ {{ number_format(($link->sell_rate + ($link->sell_rate * $link->sell_vat / 100)) * $link->quantity, 2) }} | ৳ {{ number_format($link->cast_rate, 2) }} | {{ number_format($link->cast_vat, 2) }}% | ৳ {{ number_format(($link->cast_rate * $link->cast_vat / 100) * $link->quantity, 2) }} | ৳ {{ number_format(($link->cast_rate + ($link->cast_rate * $link->cast_vat / 100)) * $link->quantity, 2) }} | @php $totalSellAmount = ($link->sell_rate + ($link->sell_rate * $link->sell_vat / 100)) * $link->quantity; $totalCastAmount = ($link->cast_rate + ($link->cast_rate * $link->cast_vat / 100)) * $link->quantity; $profitLoss = $totalSellAmount - $totalCastAmount; @endphp৳ {{ number_format($profitLoss, 2) }} | @if($link->status == 'active') Active @else Inactive @endif | |
|
No NTTN links found |
|||||||||||||||
| Total: | {{ number_format($totalQuantity, 2) }} | - | - | ৳ {{ number_format($totalSellVAT, 2) }} | ৳ {{ number_format($totalSellAmount, 2) }} | - | - | ৳ {{ number_format($totalCastVAT, 2) }} | ৳ {{ number_format($totalCastAmount, 2) }} | ৳ {{ number_format($totalProfitLoss, 2) }} | - | ||||