Dashboard
Creat New Catecory
Customer
{{$sale->name }}
Sale References
{{$sale->sale_reference }}
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->final_total_price - $sale->total_cost, 2) }}
{{-- @if (($purchaseTotalSums->overall_total_cost - $purchaseTotalSums->overall_total_paid) > 0) @else @endif --}}Return Items
Product
Quantity
UPDATE
{{-- --}}
| Item Name | Return Quantity | Sale Quantity | Total Price |
Action |
|---|
Data table
| Name | Quantity | Price | Subtotal | Warranty Period | Days Left |
|---|---|---|---|---|---|
| {{ $product->product_name }}
{{-- @if($product->type =="product") --}}
({{ $product->code }}) |
{{ $product->quantity }} | {{ $product->price }} | {{ $product->quantity * $product->price }} | {{ $product->warranty_period }} | @php $warranty_end_date = null; switch ($product->warranty_period) { case '01 Month': $warranty_end_date = \Carbon\Carbon::parse($product->date)->addMonth(); break; case '03 Months': $warranty_end_date = \Carbon\Carbon::parse($product->date)->addMonths(3); break; case '06 Months': $warranty_end_date = \Carbon\Carbon::parse($product->date)->addMonths(6); break; case '01 Year': $warranty_end_date = \Carbon\Carbon::parse($product->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' }} |
813 friends
9000 followers
Google plus
780 friends
1090 connections