@extends('layouts.main') @section('title') {{ __('Update Advertisements') }} @endsection @section('page-title')

@yield('title')

@endsection @section('content')
@csrf @method('PUT')        
{{-- Listing Details --}}
@php $isJobCategory = $item->category && $item->category->is_job_category; $isPriceOptional = $item->category && $item->category->price_optional; @endphp
    {{-- Other Details - Custom Fields --}}
@forelse($custom_fields as $field)
@php $isRequired = ''; @endphp @if($field->type === 'textbox') @elseif($field->type === 'number') @elseif($field->type === 'fileinput') @if(!empty($field->value)) @endif @elseif($field->type === 'dropdown' || $field->type === 'radio') @php $options = is_array($field->values) ? $field->values : json_decode($field->values, true); @endphp @elseif($field->type === 'checkbox') @php $options = is_array($field->values) ? $field->values : json_decode($field->values, true); @endphp @foreach($options as $option)
value) && in_array($option, $field->value) ? 'checked' : '' }} {{ $isRequired }}>
@endforeach @endif
@empty

{{ __('No custom fields for this category.') }}

@endforelse
    {{-- Product Images --}}
image}} width="80" class="mb-2">
@foreach ($item->gallery_images as $img)
image}} width="80"> Remove
@endforeach
    {{-- Address --}}
   
@error('admin_edit_reason')
{{ $message }}
@enderror
@endsection @section('script') @endsection