Dashboard
Creat New Catecory
Return Items
Scan Barcode
Product
Quantity
UPDATE
{{-- --}}
| Item Name | Return Quantity | Sale Quantity | Total Price |
Action |
|---|
Data table
| Sales Reference | Date | IMU | Product | Cost | Price | view |
|---|---|---|---|---|---|---|
| {{ $product->product_name }}
({{ $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