@extends('layouts/layoutMaster') @section('title', 'Sugerencias de catálogos') @section('content')
Sugerencias pendientes
El mariachi puede sugerir opciones; solo admin las convierte en catálogo oficial.
Volver al dashboard
@foreach($statuses as $value => $label) {{ $label }} @endforeach
@if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if($suggestions->isEmpty())
No hay sugerencias para mostrar

Cuando los mariachis propongan nuevas opciones aparecerán aquí.

@else
@foreach($suggestions as $suggestion) @php $context = (array) ($suggestion->context_data ?? []); $contextCityId = (int) ($context['marketplace_city_id'] ?? 0); $contextCityName = $contextCityId > 0 ? ($citiesById[$contextCityId] ?? null) : null; @endphp @endforeach
Tipo Propuesta Contexto Estado Enviado por Revisión Acciones
@switch($suggestion->catalog_type) @case(\App\Models\CatalogSuggestion::TYPE_EVENT) Tipo de evento @break @case(\App\Models\CatalogSuggestion::TYPE_SERVICE) Tipo de servicio @break @case(\App\Models\CatalogSuggestion::TYPE_ZONE) Zona / barrio @break @default {{ $suggestion->catalog_type }} @endswitch {{ $suggestion->proposed_name }}
/{{ $suggestion->proposed_slug ?: \Illuminate\Support\Str::slug($suggestion->proposed_name) }}
@if($contextCityName)
Ciudad: {{ $contextCityName }}
@endif @if($suggestion->admin_notes)
Nota admin: {{ $suggestion->admin_notes }}
@endif
{{ ucfirst($suggestion->status) }} {{ $suggestion->submittedBy?->display_name ?: 'Sistema' }} {{ $suggestion->reviewedBy?->display_name ?: '—' }}
{{ optional($suggestion->reviewed_at)->format('Y-m-d H:i') ?: '—' }}
@if($suggestion->status === 'pending')
@csrf @method('PATCH')
@csrf @method('PATCH')
@else — @endif
{{ $suggestions->links() }}
@endif
@endsection