{{-- Filter Collapse --}}
@error('from_date') {{ $message }} @enderror
@error('to_date') {{ $message }} @enderror
Reset
{{-- Success Alerts --}} @if(session('success')) @endif
@forelse($wishlists as $index => $customerWishlists) @php $firstWishlist = $customerWishlists->first(); $totalItems = $customerWishlists->sum(function($wl) { return $wl->items->count(); }); @endphp {{-- Actions --}} @empty @endforelse
Sr No Customer Name Mobile No. Location Wishlist Folders Total Items Date Action
{{ ($wishlists->currentPage() - 1) * $wishlists->perPage() + $index + 1 }} {{ $firstWishlist->customer->name ?? $firstWishlist->user->name ?? 'N/A' }} {{ $firstWishlist->customer->mobile_no ?? $firstWishlist->user->mobile ?? 'N/A' }} {{ $firstWishlist->customer->location ?? $firstWishlist->user->address ?? 'N/A' }}
@foreach($customerWishlists->take(2) as $wl) {{ $wl->name }} @endforeach @if($customerWishlists->count() > 2) ... @endif
{{ $totalItems }} Items {{ $firstWishlist->created_at->format('d-m-Y') }} @if($status === 'pending') {{-- Convert to quotation --}}
@else Converted @endif {{-- View items button --}} {{-- Delete wishlist button --}}
No Wishlists found
{{-- Pagination --}}
{{ $wishlists->links('pagination::bootstrap-5') }}