@extends('admin.layouts.app') @section('panel')
@forelse($items as $item) @empty @endforelse
@lang('ID') @lang('Seller') @lang('Scope') @lang('Seller Type') @lang('Label') @lang('Bound Options') @lang('Status') @lang('Approved At') @lang('Action')
{{ $item->id }} {{ $item->seller->username ?? $item->seller_id }} @if($item->scope_type === 'category') {{ __('Category') }}: {{ $categoryMap->get($item->scope_id) ?? $item->scope_id }} @else {{ __('Product') }}: {{ $productMap->get($item->scope_id) ?? $item->scope_id }} @endif {{ $item->sellerType->title ?? $item->seller_type_id }} {{ $item->label }} @php $optionLabels = $item->bindings->map(function ($binding) { return $binding->option?->title ?: $binding->option_id; })->filter()->values()->all(); @endphp {{ !empty($optionLabels) ? implode(', ', $optionLabels) : '-' }} {{ ucfirst($item->status) }} {{ $item->approved_at ?? '-' }} @if($item->status === 'pending')
@csrf
@csrf
@else - @endif
{{ __($emptyMessage ?? 'No items found') }}
@if ($items->hasPages()) @endif
@endsection