@extends('backend.partials.master') @section('title') {{ ($item ? ___('vendor.Edit') : ___('vendor.New')) . ' ' . ___('vendor.listing') }} @endsection @section('maincontent') @php $hasImage = in_array('image', (new $cfg['model'])->getFillable(), true); @endphp @include('backend.portal.marketplace._status')
@csrf @if($item) @method('PUT') @endif
@foreach($cfg['fields'] as $name => [$label, $type, $rule])
@if($type === 'textarea') @elseif(str_starts_with($type, 'select:')) @php $opts = ${explode(':', $type)[1]}; $isList = array_is_list($opts); @endphp @else @endif @error($name){{ $message }}@enderror
@endforeach @if($hasImage)
@error('image'){{ $message }}@enderror
@endif @if($item)
@endif

{{ ___('vendor.New and edited listings are reviewed by the office before they appear on the site.') }}

@endsection