@php($editing = $type->exists)
@csrf @if ($editing) @method('PUT') @endif
{{ __('Available for') }} *
@foreach ($services as $value => $label) @endforeach
@error('service_types')

{{ $message }}

@enderror
@foreach ([ 'icon' => [__('List icon (PNG, WebP)'), null], 'map_icon' => [__('Map marker (PNG, WebP)'), __('Seen from above with the front at the top, on a transparent background, twice as tall as wide (e.g. 72 × 144 px). The apps turn it to the way the driver is heading; without one they draw a car, or a motorbike for one-seat types.')], 'image' => [__('Illustration'), null], ] as $field => [$label, $hint])
@if ($type->{$field} && Storage::disk(config('ridex.uploads.disk'))->exists($type->{$field})) @endif @if ($hint)

{{ $hint }}

@endif @error($field)

{{ $message }}

@enderror
@endforeach
{{ $editing ? __('Save changes') : __('Create') }} {{ __('Cancel') }}