@include('frontend.includes.msg') @if (!function_exists('formatIndianNumber')) @php function formatIndianNumber($number) { $number = (string)$number; $lastThree = substr($number, -3); $restUnits = substr($number, 0, -3); if ($restUnits != '') { $lastThree = ',' . $lastThree; } $formatted = preg_replace("/\B(?=(\d{2})+(?!\d))/", ",", $restUnits) . $lastThree; return $formatted; } @endphp @endif @foreach($products as $key=>$product) {{-- --}} @endforeach {{-- --}}
Image Title / ID On deal Category Price Status Uploaded on Actions
@php $category=DB::table('categories')->get(); @endphp
@php $images = $product->images ? explode(',', $product->images) : []; $firstImage = isset($images[0]) ? $images[0] : 'default.png'; @endphp
{{$product->name}} / #{{$product->id}} {{$product->description ? Str::limit(strip_tags($product->description), 20) : ''}}
deal ? 'checked' : ''}} type="checkbox" class="custom-control-input productsDeal checkbox" id="checkBox_{{$product->id}}">
@if(isset($product->category->name)) {{$product->category->name}} @endif @if($product->price) ₹ {{formatIndianNumber($product->price)}} @else Not provided @endif @if($product->status == 0) Inactive @else Active @endif {{date("F j, Y", strtotime($product->created_at))}}
New 11/06/2023 10:53 In Progress
Sent 11/06/2023 10:53 Completed
Returning 11/06/2023 10:53 Not Interested
Sent 11/06/2023 10:53 Completed