@extends('layouts.app') @section('page-pretitle', __('Management')) @section('page-title', __('Project Quotation Details')) @section('content')
{{-- Quotation Header --}}

{{ $quotation->client_name }}

{{ \Carbon\Carbon::parse($quotation->date)->format('d M Y') }}

{{-- Quotation Items --}}
Quotation Items
@php $subtotal = 0; @endphp @foreach ($quotation->items as $item) @php $lineTotal = $item->quantity * $item->unit_price; $subtotal += $lineTotal; @endphp @endforeach
Description Qty Unit Price (RM) Total (RM)
{{ $item->description }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($lineTotal, 2) }}
@php $tax = $subtotal * 0.06; $total = $subtotal + $tax; @endphp
Subtotal: RM {{ number_format($subtotal, 2) }}
GST (6%): RM {{ number_format($tax, 2) }}
Total: RM {{ number_format($total, 2) }}
{{-- Back button --}}
@endsection