@extends('layouts.adminlte') @section('title', 'DETAIL COST PROJECT') @section('page_title', 'DETAIL COST PROJECT') @push('styles') @endpush @section('content') @php $fmtRp = fn($n) => 'Rp ' . number_format((float) ($n ?? 0), 2, ',', '.'); $qTotal = (float) ($quotation?->grand_total ?? 0); $poBarangTotal = (float) $poBarang->sum('total_amount'); $poJasaTotal = (float) $poJasa->sum('total_amount'); $actualTotal = $poBarangTotal + $poJasaTotal; $variance = $qTotal - $actualTotal; @endphp
| # | Description | Qty | Unit | Unit Price | Total |
|---|---|---|---|---|---|
| {{ $i+1 }} | {{ $it->description }} | {{ number_format((float)$it->qty, 3, ',', '.') }} | {{ $it->unit ?: '-' }} | {{ $fmtRp($it->unit_price) }} | {{ $fmtRp($it->total_price) }} |
| Grand Total | {{ $fmtRp($quotation->grand_total) }} | ||||
| Item | Qty | Unit Price | Total |
|---|---|---|---|
| {{ $it->rabItem?->item_code ?: '-' }} - {{ $it->rabItem?->item_name ?: '-' }} | {{ number_format((float)$it->qty, 3, ',', '.') }} | {{ $fmtRp($it->unit_price) }} | {{ $fmtRp($it->total_price) }} |
| PO Total | {{ $fmtRp($po->total_amount) }} | ||
| Description | Qty | Unit | Unit Price | Total |
|---|---|---|---|---|
| {{ $it->description }} | {{ number_format((float)$it->qty, 3, ',', '.') }} | {{ $it->unit ?: '-' }} | {{ $fmtRp($it->unit_price) }} | {{ $fmtRp($it->total_price) }} |
| PO Total | {{ $fmtRp($po->total_amount) }} | |||