@php // ── Calculations ── $TOLA = 11.664; // Weight integer + decimal parts $wInt = (int) floor($gold->weight); $wDec = '.' . str_pad(round(($gold->weight - floor($gold->weight)) * 1000), 3, '0', STR_PAD_LEFT); $impInt = (int) floor($gold->impure_weight); $impDec = '.' . str_pad(round(($gold->impure_weight - floor($gold->impure_weight)) * 1000), 3, '0', STR_PAD_LEFT); $purInt = (int) floor($gold->pure_weight); $purDec = '.' . str_pad(round(($gold->pure_weight - floor($gold->pure_weight)) * 1000), 3, '0', STR_PAD_LEFT); // Tola breakdown of pure weight: 1 Tola=16 Aath, 1 Aath=6 Ratti // ملاوٹ فی تولہ = RATTI IN ko Pound-Ratti-Cent mein convert karo // 1 Pound = 6 Ratti, decimal of ratti = Cent $rattiIN_val = round((100 - $gold->laser_points) * 96 / 100, 2); $pound = (int) floor($rattiIN_val / 6); $remR = $rattiIN_val - ($pound * 6); $rInt = (int) floor($remR); $cent = (int) round(($remR - $rInt) * 100); // Kerat $kerat = number_format(($gold->laser_points / 100) * 24, 2); // Charges $charges = $gold->ch_charges + $gold->lbr_charges; @endphp
{{-- ── HEADER ── --}}
SGM
Gold Testing laboratory
Sarafa Bazar
0302-3155157    0306-3108504
{{-- ── OUTER BOX ── --}}
{{-- META: receipt# | LASER | date/time --}}
#{{ str_pad($gold->id, 5, '0', STR_PAD_LEFT) }} LASER {{ $gold->created_at->format('d-M-Y') }}
{{ $gold->created_at->format('h:i:s A') }}
{{-- Customer name row --}}
نام {{ $gold->customer_name ?? '' }}
{{-- WEIGHT TABLE --}} {{-- Total weight - bold/big --}} {{-- Impure --}} {{-- Pure - bold/big --}}
گرام ملی گرام
{{ $wInt }} {{ $wDec }} توکل وزن
{{ $impInt }} {{ $impDec }} ملاوٹ وزن
{{ $purInt }} {{ $purDec }} خالص وزن
{{-- TOLA BREAKDOWN --}}
ملاوٹ فی تولہ
آنہ رتی پوائنٹ
{{ $pound }} - {{ $rInt }} - {{ $cent }}
{{-- RATTI IN / KERAT --}}
RATTI IN:   {{ number_format($gold->ratti_in ?? 0, 2) }}
KERAT:   {{ $kerat }}
{{-- RATE / CHARGES --}}
فی گرام چارجز
{{ number_format($charges, 0) }}
ریٹ / تولہ
{{ number_format($gold->rate_per_tola, 0) }}
{{-- TOTAL PRICE --}}
قیمت {{ number_format($gold->total_price, 0) }}
{{-- end .box --}} {{-- FOOTER --}}
{{-- BUTTONS --}}
+ نئی Entry Records