@extends('layouts.app') @section('content')
{{--

Creat New Catecory

--}}
Return Items

Scan Barcode

Product

Quantity

UPDATE



{{-- --}}

Item Name Return Quantity Sale Quantity Total
Price
Action

Data table

{{-- @foreach($saleProduct as $product) @endforeach --}}
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' }}
Facebook

813 friends

Twitter

9000 followers

Google plus

780 friends

Linkedin

1090 connections

@endsection