@extends('admin.layouts.master') @section('ads', 'active') @section('title') {{ $data['title'] ?? '' }} @endsection @php $ads = $data['ads']; if ($ads->category_slug && $ads->category_slug == 'mens-fashion-grooming') { $cloth_types = config()->get('static_array.mens_clothing'); } else { $cloth_types = config()->get('static_array.womens_clothing'); } @endphp @section('content')

{{ $data['title'] ?? '' }}

Edit Ads

@if (Auth::user()->can('admin.ads.view')) Back @endif
{{ __('thumbnail') }}
image
@if ($ads->category_slug != 'jobs') @endif @if ($ads?->brand) @endif @if ($ads->hasOneAdsInfo?->job_type) @endif @if ($ads->hasOneAdsInfo?->experience) @endif @if ($ads->hasOneAdsInfo?->required_education) @endif @if ($ads->hasOneAdsInfo?->employer_name) @endif @if ($ads->hasOneAdsInfo?->employer_phone) @endif @if ($ads->hasOneAdsInfo?->employer_email) @endif @if ($ads->hasOneAdsInfo?->receive_is_email) @endif @if ($ads->hasOneAdsInfo?->receive_is_phone) @endif @if ($ads->hasOneAdsInfo?->salary_from) @endif @if ($ads->hasOneAdsInfo?->deadline) @endif @if ($ads->hasOneAdsInfo?->website) @endif @if ($ads->hasOneAdsInfo?->employer_logo) @endif @if ($ads->hasOneAdsInfo?->textbook_type) @endif @if ($ads->hasOneAdsInfo?->ads_type) @endif @if ($ads->hasOneAdsInfo?->vehicle_manufacture) @endif @if ($ads->hasOneAdsInfo?->vehicle_engine_capacity) @endif @if ($ads->hasOneAdsInfo?->vehicle_body_type) @endif @if ($ads->hasOneAdsInfo?->vehicle_fule_type) @php $vehicleFuelTypes = $ads->hasOneAdsInfo->vehicle_fule_type; // If the vehicle_fule_type is stored as a JSON string, decode it first if (is_string($vehicleFuelTypes)) { $vehicleFuelTypes = json_decode($vehicleFuelTypes, true); } // Convert the array to a comma-separated string $vehicleFuelTypesString = is_array($vehicleFuelTypes) ? implode(', ', $vehicleFuelTypes) : $vehicleFuelTypes; @endphp @endif @if ($ads->hasOneAdsInfo?->vehicle_transmission) @endif @if ($ads->hasOneAdsInfo?->registration_year) @endif @if ($ads->hasOneAdsInfo?->property_type) @endif @if ($ads->hasOneAdsInfo?->property_size) @endif {{-- --}} @if ($ads->hasOneAdsInfo?->description) @endif @if (isset($ads->hasManyGallery) && $ads->hasManyGallery->count() > 0) @endif
{{ __('Title') }} {{ $ads->title }}
{{ __('Username') }} {{ $ads->belongsToUser->name }}
{{ __('Price') }} @if ($ads?->price) {{ $setting->currency_symbol }} {{ CurrencyFormat($ads->price, 2) }} @else {{ __('Negotiable') }} @endif
{{ __('Category') }} {{ $ads->belongsToCategory->name }}
{{ __('Sub Category') }} {{ $ads->belongsToSubCategory->name }}
{{ __('Brand') }} @if (!empty($ads->brand)) {{ $ads->brand->name }} @endif
{{ __('Region') }} {{ $ads->belongsToRegion->name }}
{{ __('City') }} {{ $ads->belongsToCity->name }}
{{ __('Address') }} {{ $ads->address }}
{{ __('Postcode') }} {{ $ads->postcode }}
{{ __('Job Type') }} {{ $ads->hasOneAdsInfo->job_type }}
{{ __('Experience') }} (Years) {{ $ads->hasOneAdsInfo->experience }} years
{{ __('Required Education') }} {{ $ads->hasOneAdsInfo->required_education }}
{{ __('Employer Name') }} {{ $ads->hasOneAdsInfo->employer_name }}
{{ __('Employer Phone') }} {{ $ads->hasOneAdsInfo->employer_phone }}
{{ __('Employer Email') }} {{ $ads->hasOneAdsInfo->employer_email }}
{{ __('Receive By Email') }} @if ($ads->hasOneAdsInfo->receive_is_email == '1') Yes @else No @endif
{{ __('Receive By Phone') }} @if ($ads->hasOneAdsInfo->receive_is_phone == '1') Yes @else No @endif
{{ __('Salary Range') }} {{ $setting->currency_symbol }} {{ $ads->hasOneAdsInfo->salary_from }} - {{ $ads->hasOneAdsInfo->salary_to }}
{{ __('Deadline') }} {{ date('d M Y', strtotime($ads->hasOneAdsInfo->deadline)) }}
{{ __('Website') }} {{ $ads->hasOneAdsInfo->website }}
{{ __('employer_logo') }}
{{ __('Textbook Type') }} {{ $ads->hasOneAdsInfo->textbook_type }}
{{ __('Ads Type') }} {{ $cloth_types[$ads->hasOneAdsInfo->ads_type] }}
{{ __('Vehicle Manufacture') }} {{ $ads->hasOneAdsInfo->vehicle_manufacture }}
{{ __('Vehicle Engine Capacity') }} {{ $ads->hasOneAdsInfo->vehicle_engine_capacity }} cc
{{ __('Vehicle Body Type') }} {{ $ads->hasOneAdsInfo->vehicle_body_type }}
{{ __('Vehicle Fule Type') }} {{ $vehicleFuelTypesString }}
{{ __('Vehicle Transmission') }} {{ $ads->hasOneAdsInfo->vehicle_transmission }}
{{ __('Registration Year') }} {{ $ads->hasOneAdsInfo->registration_year }}
{{ __('Property Type') }} {{ $ads->hasOneAdsInfo->property_type }}
{{ __('Property Size') }} {{ $ads->hasOneAdsInfo->property_size }} {{$ads->hasOneAdsInfo->property_unit}}
{{ __('featured') }} {{ $ads->featured ? 'Yes' : 'No' }}
{{ __('total_views') }} {{ $ads->total_views }}
{{ __('ad_link') }} {{ __('go_to_link') }}
{{ __('Description') }} {!! $ads->hasOneAdsInfo->description !!}
{{ __('features') }}
    @forelse ($ads->hasManyFeatures as $feature)
  • {{ $feature->name }}
  • @empty {{ __('no_features_found') }} @endforelse
{{ __('galleries') }} @foreach ($ads->hasManyGallery as $gallery) @endforeach
@endsection