@extends('backEnd.layouts.master') @section('title', 'Manage Vendors') @section('css') @endsection @section('content')
{{-- PAGE HEADER --}}

Manage Vendors

Overview of all registered sellers and shops.

{{-- Add create button here if needed --}}
{{-- SEARCH / FILTER --}}
@if(request('keyword')) Clear @endif
{{-- TABLE --}}
@foreach($vendors as $key => $vendor) {{-- Shop Profile --}} {{-- Owner Info --}} {{-- Contact --}} {{-- Stats --}} {{-- Balance --}} {{-- Verification --}} {{-- Status --}} {{-- Actions --}} @endforeach
# Shop Profile Owner Info Contact Stats Balance Verification Status Actions
{{ $loop->iteration }}
@if($vendor->logo) logo @else
{{ substr($vendor->shop_name, 0, 1) }}
@endif
{{ $vendor->shop_name }}
ID: #{{ $vendor->id }}
{{ $vendor->owner_name }}
{{Str::limit($vendor->email, 15)}} {{ $vendor->phone }}
{{ $vendor->products->count() }} Products ৳{{ number_format($vendor->wallet ? $vendor->wallet->balance : 0, 2) }} @if($vendor->verification_status == 'approved') Verified @elseif($vendor->verification_status == 'rejected') Rejected @else Pending @endif @if($vendor->status == 1) Active @else Inactive @endif
{{-- Status Toggle --}}
@csrf @if($vendor->status == 1) @else @endif
{{-- Edit --}} {{-- Delete --}}
@csrf @method('DELETE')
{{-- PAGINATION --}}
Showing {{ $vendors->firstItem() }} to {{ $vendors->lastItem() }} of {{ $vendors->total() }} vendors
{{ $vendors->links('pagination::bootstrap-4') }}
@endsection @section('script') @endsection