Viewing File: /home/ubuntu/vedadeals-backend-base/resources/views/admin/users/wishlists.blade.php

@extends('layouts.admin') 

@section('title') 
  {{ tr('wishlists') }} 
@endsection

@section('content-header')

{{  tr('wishlists') }} &nbsp; - &nbsp; <a href="{{ route('admin.users.view', ['user_id' => request()->user_id]) }}">{{ $user->name }} </a>

@endsection 

@section('breadcrumb')

<li class="breadcrumb-item text-muted"> <a href="{{ route('admin.users.index') }}" class="text-muted">{{tr('users')}} </a></li>
<li class="breadcrumb-item"> <span class="bullet bg-gray-300 w-5px h-2px"></span> </li>
<li class="breadcrumb-item active">{{ tr('wishlists') }} </li>
@endsection 

@section('content')
<div class="card card-flush">
    <div class="card-body">

        <table class="table align-middle table-row-dashed fs-6">
        @if($wishlists->isNotEmpty())
            <thead>
                <tr class="text-start text-muted fw-bolder fs-7 text-uppercase gs-0">
                    <th class="min-w-1px"> {{ tr('s_no') }} </th>
                    <th class="min-w-1px"> {{ tr('product') }} </th>
                    <th class="min-w-1px"> {{ tr('status') }} </th>
                    <th class="min-w-1px"> {{ tr('wishlisted_at') }} </th>
                    <th class="min-w-1px"> {{ tr('action') }} </th>
                </tr>
            </thead>
            <tbody class="text-gray-600 fw-bold"> 
            @foreach($wishlists as $i => $wishlist)
                <tr>
                    <td>{{ $i+$wishlists->firstItem() }}</td>
                    <td> 
                        <a href="{{ route('admin.products.view', ['product_id' => $wishlist->product_id]) }}" class="menu-link">
                        {{ $wishlist->product->name ? : tr('na') }} </a>
                    </td>
                    <td> 
                        <span class="badge py-3 px-4 fs-7 {{ $wishlist->status ? 'badge-light-success' : 'badge-light-warning' }} "> 
                                {{ $wishlist->status ? tr('approved') : tr('declined') }}
                        </span> 
                    </td>
                    <td class="">{{ common_date($wishlist->created_at, Auth::guard('admin')->user()->timezone , 'd M Y h:i A') }}</td>
                    <td class=""> 
                        <a href="{{ route('admin.products.view', ['product_id' => $wishlist->product_id]) }}" class="btn btn-primary btn-sm">
                        {{ tr('view_product') }} </a>
                    </td>
                </tr>
            @endforeach 
        @else
                <tr>
                    <div class="card overlay border mt-8">
                        <div class="card-body p-0">
                            <div class="overlay-wrapper h-100px bgi-no-repeat bgi-size-contain bgi-position-center">
                                <h2 class="text-center pt-12"> {{ tr('no_data_found') }} </h2>
                            </div>
                        </div>
                    </div>
                </tr>
        @endif 
            </tbody>
        </table>
        <ul class="pagination pagination-outline justify-content-end">
            <li class="page-item"> {{ $wishlists->appends(request()->input())->links('pagination::bootstrap-4') }} </li>
        </ul>
    </div>
</div>
</div>
</div>
</div>
@endsection
Back to Directory File Manager