@extends('layout.master', ['title' => 'Home']) @section('content')
@php use Carbon\Carbon; $currentDateTime = Carbon::now('Asia/Dhaka'); // Set the timezone to "Asia/Dhaka" for $givenDateTime $givenDateTime = Carbon::parse($endTime, 'Asia/Dhaka'); // Calculate the time difference $timeDifference = $currentDateTime->diff($givenDateTime)->format('%d days, %h hours, %I minutes, %S seconds'); // Explode the formatted time difference string into an array $timeDifferenceArray = explode(', ', $timeDifference); // Initialize an associative array to hold the time difference values $timeDifferenceAssoc = []; // Iterate through the exploded array and split the key-value pairs foreach ($timeDifferenceArray as $difference) { $pair = explode(' ', $difference, 2); $timeDifferenceAssoc[$pair[1]] = (int)$pair[0]; } // Convert associative array to JSON $timeDifferenceJson = json_encode($timeDifferenceAssoc); @endphp @if(strtotime($givenDateTime) > strtotime($currentDateTime))
Today's

Flash Sales

Days

03

:

Hours

23

:

Minutes

59

:

Seconds

50

@endif
Categories

Browse by Category

This Month

Best Selling Products

{{--
--}}
@foreach ($products as $product) @if ($product->status == 3)
Product image

-{{ round((($product->price - $product->discounted_price) / $product->price) * 100) }}%

@if (auth()->user()) @else @endif

৳ {{ $product->discounted_price }}

৳ {{ $product->price }}
@php $rating = $product->rating; @endphp @for ($i = 0; $i < 5; $i++) @if ($rating >= 1) @else @endif @php $rating--; @endphp @endfor

({{ $product->rating_count }})

অর্ডার করুন

@endif @endforeach
@if ($featured_image) @endif {{--
--}}
Our Product's

Explore Our Products

@foreach ($products as $index=> $product)
Product image

-{{ round((($product->price - $product->discounted_price) / $product->price) * 100) }}%

@if (auth()->user()) @else @endif
{{-- @if (auth()->user()) --}} {{-- @else @endif --}}

৳ {{ $product->discounted_price }}

৳ {{ $product->price }}
@php $rating = $product->rating; @endphp @for ($i = 0; $i < 5; $i++) @if ($rating >= 1) @else @endif @php $rating--; @endphp @endfor

({{ $product->rating_count }})

অর্ডার করুন

@if ($index>=31) @break @endif @endforeach
Featured

New Arrival

@if ($new_araival) @endif

Free and Fast Delivery

Free Delivery for all order over 10000

24/7 Customer Service

Friendly 24/7 Customer Support

Money Back Guarantee

We return money within 30 days

@endsection @section('scripts') @if(strtotime($givenDateTime) > strtotime($currentDateTime)) @endif @endsection