@extends('layouts.app') @section('title', 'Sale Receipt - ' . $sale->sale_number) @section('content')
← Back to Cashier
View Sales History
Store Logo

H Mart

අංක 09, මහනුවර පාර, හසලක

☎ 055225706

බිල්පත

දිනය: {{ $sale->created_at->setTimezone('Asia/Colombo')->format('d/m/Y h:i:sA') }} අංකය: {{ $sale->sale_number }}
මුදල් අයකැමි: {{ $sale->user->name ?? 'System' }} ගෙවීමේ ක්‍රමය: {{ $sale->payment_method }}
ප්‍රමාණය සදහන් මිල අපේ මිල එකතුව
@foreach ($sale->items as $item)
{{ $item->product->product_name }}
{{ number_format($item->quantity, 0) }} @if ((method_exists($item, 'hasDiscount') && $item->hasDiscount()) || (property_exists($item, 'discount_type') && $item->discount_type !== 'none' && $item->discount_amount > 0)) {{ number_format($item->price_before_discount, 2) }} @else {{ number_format($item->price, 2) }} @endif {{ number_format($item->price, 2) }} {{ number_format($item->total, 2) }}
@endforeach
මුලු එකතුව {{ number_format($sale->total, 2) }}
**** ගෙවීම ****
ගෙවූ මුදල {{ number_format($sale->amount_received ?? $sale->total, 2) }}
@if ($sale->total_discount > 0)
ලබාදුන් වට්ටම {{ number_format($sale->total_discount, 2) }}
@endif @if ($sale->payment_method->value === 'cash' && $sale->change_amount > 0)
ඉතිරිය {{ number_format($sale->change_amount, 2) }}
@endif
@if (session('success'))
{{ session('success') }}
@endif
@endsection