Sale Reference : {{$sale->sale_reference }}
Customer
{{$sale->name }}
Received Amount
{{ number_format($sale->received_amount, 2) }}
Total Cost
{{ number_format($sale->total_cost, 2) }}
Total Quantity
{{ $sale->quantity }}
{{--{{ number_format($purchaseTotalSums->overall_total_cost - $purchaseTotalSums->overall_total_paid, 2) }}
@if (($purchaseTotalSums->overall_total_cost - $purchaseTotalSums->overall_total_paid) > 0) @else @endif --}}Other Charges
{{$sale->total_other_charge }}
Discount Amount
{{ $sale->discount_amount }}
@elseif(!is_null($sale->discount_percentage) && $sale->discount_percentage > 0)Discount Percentage
{{ $sale->discount_percentage }}%
@elseNo Discount
@endifTotal Price
{{ number_format($sale->final_total_price, 2) }}
{{-- --}}Total Profit
{{--{{ number_format($sale->total_price, 2) }}
--}}{{ number_format($sale->received_amount - $sale->total_cost, 2) }}
{{-- @if (($purchaseTotalSums->overall_total_cost - $purchaseTotalSums->overall_total_paid) > 0) @else @endif --}}Pills
Basic nav pills
--}}| Id # | Product Name | Total Quantity |
Total Cost | Total Paid | Profit | Warranty Period |
Days Left | {{--Delete | --}}
|---|---|---|---|---|---|---|---|---|
| {{ $sale->id }} | {{ $sale->product_name }} | {{ $sale->quantity }} | {{ number_format($sale->cost, 2) }} | {{ number_format($sale->price, 2) }} | {{ number_format($sale->profit, 2) }} | {{ $sale->warranty_period }} | @if($sale->warranty_status == 'yes') @php $warranty_end_date = null; switch ($sale->warranty_period) { case '01 Month': $warranty_end_date = \Carbon\Carbon::parse($sale->date)->addMonth(); break; case '03 Months': $warranty_end_date = \Carbon\Carbon::parse($sale->date)->addMonths(3); break; case '06 Months': $warranty_end_date = \Carbon\Carbon::parse($sale->date)->addMonths(6); break; case '01 Year': $warranty_end_date = \Carbon\Carbon::parse($sale->date)->addYear(); break; } $days_left = $warranty_end_date ? now()->diffInDays($warranty_end_date, false) : 0; @endphp {{ $days_left > 0 ? "$days_left days left" : 'Warranty expired' }} @else - @endif | {{----}} {{-- Uncomment below if delete functionality is needed --}} {{-- --}} {{-- | --}}
| Id # | Product Name | Total Quantity |
Total Cost | Total Paid | Profit | Warranty Period |
Days Left |
|---|---|---|---|---|---|---|---|
| {{ $item->id }} | {{ $item->product_name }} | {{ $item->imu_number ?? 'N/A' }} | {{ number_format($item->cost, 2) }} | {{ number_format($item->price, 2) }} | {{ number_format($item->price - $item->cost, 2) }} | {{ $item->warranty_period ?? 'N/A' }} | @if($item->warranty_status == 'yes') @php $warranty_end_date = null; switch ($item->warranty_period) { case '01 Month': $warranty_end_date = \Carbon\Carbon::parse($item->date)->addMonth(); break; case '03 Months': $warranty_end_date = \Carbon\Carbon::parse($item->date)->addMonths(3); break; case '06 Months': $warranty_end_date = \Carbon\Carbon::parse($item->date)->addMonths(6); break; case '01 Year': $warranty_end_date = \Carbon\Carbon::parse($item->date)->addYear(); break; } $days_left = $warranty_end_date ? now()->diffInDays($warranty_end_date, false) : 0; @endphp {{ $days_left > 0 ? "$days_left days left" : 'Warranty expired' }} @else - @endif |
Data table
Data table
| Id # | Sale Id | Date | Supplier | total Quantity | total Cost | total Paid | Profit | Profit | Delete |
|---|
813 friends
9000 followers
Google plus
780 friends
1090 connections