@extends('vendor.layouts.app') @section('title', 'My Products') @section('page-title', 'My Products') @push('styles') @endpush @section('content')

Product Management

Manage your product inventory and stock

@if($vendor->verification_status == 'approved') Add New Product @else @endif
@if($vendor->verification_status != 'approved')
@if($vendor->verification_status == 'pending') Account Verification Pending @elseif($vendor->verification_status == 'rejected') Account Verification Rejected @else Action Required: Verify Account @endif

@if($vendor->verification_status == 'pending') Your documents are under review. Product upload is restricted. @elseif($vendor->verification_status == 'rejected') Verification rejected. Please re-upload valid documents. @else Upload your ID card and photo to unlock product uploading features. @endif

Verify Now
@endif
@if(request('keyword')) @endif
All Products List
@forelse($data as $key => $value) @empty @endforelse
Product Category Type Price Stock Status Approval Action
Product
{{ Str::limit($value->name, 30) }}
ID: #{{ $value->id }}
{{ $value->category ? $value->category->name : '-' }} @php $isDigital = isset($value->is_digital) ? (bool) $value->is_digital : false; @endphp @if($isDigital) Digital @else Physical @endif ৳{{ number_format($value->new_price, 2) }} @if($value->stock > 0) {{ $value->stock }} @else Out of Stock @endif @if($value->status == 1) Active @else Inactive @endif @if($value->approval_status == 'approved') Approved @elseif($value->approval_status == 'pending') Pending @elseif($value->approval_status == 'rejected') Rejected @endif
@csrf
No products found
Create New Product
@if($data->hasPages())
@endif
@endsection @push('scripts') @endpush