{{-- manual --}} @extends('user.layouts.app') @php $activeAttachmentsForJs = collect($method->activeAttachments ?? []) ->map(function ($attachment) { $options = $attachment->options; if ($options instanceof \Illuminate\Support\Collection) { $options = $options->values()->toArray(); } elseif (is_string($options)) { $decoded = json_decode($options, true); if (json_last_error() === JSON_ERROR_NONE) { $options = $decoded; } } return [ 'id' => $attachment->id, 'name' => $attachment->name, 'input_type' => $attachment->input_type, 'is_required' => (bool) $attachment->is_required, 'options' => $options, 'min' => $attachment->min, 'max' => $attachment->max, 'placeholder' => $attachment->placeholder, 'input_dom_id' => 'attachment_' . $attachment->id, ]; }) ->values(); @endphp @section('css') @endsection @section('content')
{{ $method->name }}
| يدوي