@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($variants as $key=>$variant) {{-- --}} @endforeach {{-- --}}
Image Title / ID Category Size Dimensions / Height Price Status Uploaded on Actions
@php $category=DB::table('products')->get(); @endphp @php $category=DB::table('categories')->get(); @endphp
@php $images = $variant->product->images ? explode(',', $variant->product->images) : []; $firstImage = isset($images[0]) ? $images[0] : 'default.png'; @endphp
{{$variant->product->name}} / #{{$variant->id}} {{$variant->product->description ? Str::limit($variant->product->description, 20) : ''}} @if(isset($variant->product->category->name)) {{$variant->product->category->name}} @endif {{$variant->size->size}} @php $d_arr=explode(',',$variant->dimensions->dimension) @endphp {{ $d_arr[0] . '" x ' . $d_arr[1] . '"' }} / {{ $variant->height->height }}" @if($variant->product->price) ₹ {{formatIndianNumber($variant->price)}} @else Not provided @endif @if($variant->status == 0) Inactive @else Active @endif {{date("F j, Y", strtotime($variant->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