@extends('agent.layout') @includeIf('backend.partials.rtl_style') @section('content') {{-- ── Page heading ── --}}

{{ __('Mis Vehículos') }}

{{ __('Administra tus publicaciones de vehículos.') }}

{{ __('Nuevo Auto') }}
{{-- ── Toolbar strip ── --}}
{{-- Left: select-all + bulk delete --}}
{{-- Right: filter toggle + search + language --}}
@php $activeFilterCount = !empty($filters) ? count(array_filter($filters, fn($v) => $v !== null && $v !== '')) : 0; @endphp
@if(View::exists('agent.partials.languages'))
@includeIf('agent.partials.languages')
@endif
{{-- ── Collapsible filter panel ── --}}
{{-- Status --}}
{{-- Price min --}}
{{-- Price max --}}
{{-- Year min --}}
{{-- Year max --}}
{{-- Transmission --}}
{{-- Fuel type --}}
{{-- Brand --}}
{{-- Model --}}
{{-- Version --}}
{{-- MercadoLibre status --}}
{{-- Engine --}}
{{-- Country --}}
{{-- State --}}
{{-- City --}}
{{-- Filter actions --}}
{{ __('Limpiar') }}
{{-- ── Table ── --}}
@if (count($properties) == 0)

{{ __('NO SE ENCONTRARON VEHÍCULOS') }}

@else
@foreach ($properties as $property) {{-- Checkbox --}} {{-- Thumbnail + title --}} {{-- Condition + price --}} {{-- Status dropdown --}} {{-- MercadoLibre --}} {{-- Actions --}} {{-- PDF --}} @endforeach
{{ __('AUTO') }} {{ __('CONDICIÓN Y PRECIO') }} {{ __('ESTADO') }} {{ __('MERCADOLIBRE') }} {{ __('ACCIONES') }} {{ __('PDF') }}
@if($property->featured_image) Vehicle image @else
@endif
{{ strlen($property->title) > 45 ? mb_substr($property->title, 0, 45, 'utf-8') . '...' : $property->title }}
Autos y Camionetas
{{ $property->year ? 'Usado' : 'Nuevo' }}
{{ $property->currency_symbol ?? 'US$' }} {{ number_format($property->price, 0, '', '.') }}
@csrf
@if($property->meli_item_id && $property->meli_status == 'active')
Publicado @if($property->meli_permalink) @endif
@if($property->meli_listing_type)
{{ str_replace('_', ' ', $property->meli_listing_type) }}
@endif @elseif($property->meli_status == 'payment_required')
Pendiente Pago
@else
No publicado @if($property->meli_permalink) @endif
@endif
{{-- Edit --}} {{ __('Editar') }} {{-- Featured toggle --}}
@csrf
{{-- Delete --}}
@csrf
{{-- Pagination --}} @endif
{{-- SheetJS (same CDN as user panel) --}} @endsection