@extends('layouts.app') @section('title', session('locale','en') === 'fr' ? 'Créer une annonce' : 'Create Listing') @section('page-title', session('locale','en') === 'fr' ? 'Créer une annonce' : 'Create Listing') @section('content') @php $lang = session('locale', 'en'); $t = [ 'en' => [ 'seller_panel' => 'SELLER PANEL', 'title' => 'Create a New Listing', 'subtitle' => 'Choose a listing type and complete only the fields that apply.', 'back' => '← Back to Dashboard', 'basic' => 'Basic Information', 'basic_help' => 'Start with a title and choose the correct category.', 'listing_title' => 'Listing Title', 'category' => 'Category', 'choose_category' => 'Choose a category', 'men' => 'Men', 'women' => 'Women', 'kids' => 'Kids', 'shoes' => 'Shoes', 'bags' => 'Bags', 'accessories' => 'Accessories', 'services' => 'Services', 'photos' => 'Photos', 'photos_help' => 'Upload up to 4 clear photos. The first photo will be the main photo.', 'choose_photos' => 'Choose Photos', 'photos_selected' => 'photos selected', 'remove_all' => 'Remove All', 'main_photo' => 'Main Photo', 'video' => 'Video', 'video_help' => 'Upload a short video or add a YouTube link.', 'upload_video' => 'Upload Video', 'youtube' => 'YouTube Link', 'common' => 'Price & Contact', 'price' => 'Price', 'discount_price' => 'Discount Price', 'status' => 'Status', 'available' => 'Available', 'sold' => 'Sold', 'location' => 'Location', 'phone' => 'Phone Number', 'whatsapp' => 'WhatsApp', 'description' => 'Description', 'description_help' => 'Format your description and add professional clickable links.', 'insert_link' => 'Insert link', 'remove_link' => 'Remove link', 'clear_format' => 'Clear formatting', 'clothing_details' => 'Clothing Details', 'clothing_help' => 'Add size, color, material and clothing type.', 'clothing_type' => 'Clothing Type', 'size' => 'Size', 'brand' => 'Brand', 'color' => 'Color', 'material' => 'Material', 'condition' => 'Condition', 'new' => 'New', 'like_new' => 'Like New', 'good' => 'Good', 'used' => 'Used', 'shoe_details' => 'Shoe Details', 'shoe_help' => 'Add shoe type, size, width and material.', 'shoe_type' => 'Shoe Type', 'shoe_size' => 'Shoe Size', 'shoe_width' => 'Shoe Width', 'service_details' => 'Service Details', 'service_help' => 'Describe the service, pricing method and availability.', 'service_type' => 'Service Type', 'pricing_type' => 'Pricing Type', 'fixed_price' => 'Fixed Price', 'hourly' => 'Hourly', 'starting_from' => 'Starting From', 'duration' => 'Estimated Duration', 'service_area' => 'Service Area', 'availability' => 'Availability', 'cancel' => 'Cancel', 'save' => 'Publish Listing', 'uploading' => 'Publishing...', 'only_4' => 'You can upload up to 4 photos.', 'invalid_image' => 'Only JPG, PNG and WebP images are allowed.', 'large_image' => 'Each photo must be smaller than 4 MB.', 'invalid_video' => 'Please select MP4, MOV or WebM.', 'large_video' => 'Video must be smaller than 30 MB.', 'optional' => 'OPTIONAL', ], 'fr' => [ 'seller_panel' => 'PANNEAU VENDEUR', 'title' => 'Créer une nouvelle annonce', 'subtitle' => 'Choisissez un type d’annonce et remplissez seulement les champs nécessaires.', 'back' => '← Retour au tableau de bord', 'basic' => 'Informations principales', 'basic_help' => 'Commencez par un titre et choisissez la bonne catégorie.', 'listing_title' => 'Titre de l’annonce', 'category' => 'Catégorie', 'choose_category' => 'Choisir une catégorie', 'men' => 'Hommes', 'women' => 'Femmes', 'kids' => 'Enfants', 'shoes' => 'Chaussures', 'bags' => 'Sacs', 'accessories' => 'Accessoires', 'services' => 'Services', 'photos' => 'Photos', 'photos_help' => 'Ajoutez jusqu’à 4 photos. La première sera la photo principale.', 'choose_photos' => 'Choisir des photos', 'photos_selected' => 'photos sélectionnées', 'remove_all' => 'Tout supprimer', 'main_photo' => 'Photo principale', 'video' => 'Vidéo', 'video_help' => 'Téléversez une courte vidéo ou ajoutez un lien YouTube.', 'upload_video' => 'Téléverser une vidéo', 'youtube' => 'Lien YouTube', 'common' => 'Prix et contact', 'price' => 'Prix', 'discount_price' => 'Prix réduit', 'status' => 'Statut', 'available' => 'Disponible', 'sold' => 'Vendu', 'location' => 'Localisation', 'phone' => 'Numéro de téléphone', 'whatsapp' => 'WhatsApp', 'description' => 'Description', 'description_help' => 'Mettez la description en forme et ajoutez des liens cliquables professionnels.', 'insert_link' => 'Insérer un lien', 'remove_link' => 'Supprimer le lien', 'clear_format' => 'Effacer la mise en forme', 'clothing_details' => 'Détails du vêtement', 'clothing_help' => 'Ajoutez la taille, la couleur, la matière et le type.', 'clothing_type' => 'Type de vêtement', 'size' => 'Taille', 'brand' => 'Marque', 'color' => 'Couleur', 'material' => 'Matière', 'condition' => 'État', 'new' => 'Neuf', 'like_new' => 'Comme neuf', 'good' => 'Bon', 'used' => 'Usagé', 'shoe_details' => 'Détails des chaussures', 'shoe_help' => 'Ajoutez le type, la pointure, la largeur et la matière.', 'shoe_type' => 'Type de chaussure', 'shoe_size' => 'Pointure', 'shoe_width' => 'Largeur', 'service_details' => 'Détails du service', 'service_help' => 'Décrivez le service, la tarification et la disponibilité.', 'service_type' => 'Type de service', 'pricing_type' => 'Type de tarification', 'fixed_price' => 'Prix fixe', 'hourly' => 'À l’heure', 'starting_from' => 'À partir de', 'duration' => 'Durée estimée', 'service_area' => 'Zone de service', 'availability' => 'Disponibilité', 'cancel' => 'Annuler', 'save' => 'Publier l’annonce', 'uploading' => 'Publication...', 'only_4' => 'Vous pouvez ajouter jusqu’à 4 photos.', 'invalid_image' => 'Seules les images JPG, PNG et WebP sont acceptées.', 'large_image' => 'Chaque photo doit être inférieure à 4 Mo.', 'invalid_video' => 'Veuillez choisir une vidéo MP4, MOV ou WebM.', 'large_video' => 'La vidéo doit être inférieure à 30 Mo.', 'optional' => 'FACULTATIF', ], ]; $tr = $t[$lang] ?? $t['en']; $categoryLabels = [ 'Men' => $tr['men'], 'Women' => $tr['women'], 'Kids' => $tr['kids'], 'Shoes' => $tr['shoes'], 'Bags' => $tr['bags'], 'Accessories' => $tr['accessories'], 'Services' => $tr['services'], ]; @endphp
{{ $tr['subtitle'] }}