@php $logoUrl = $method->logo_path ? (Str::startsWith($method->logo_path, ['http','/']) ? $method->logo_path : asset('storage/'.$method->logo_path)) : null; $instructionUrl = $method->instruction_img ? (Str::startsWith($method->instruction_img, ['http','/']) ? $method->instruction_img : asset('storage/'.$method->instruction_img)) : null; @endphp {{-- Errors --}} @if ($errors->any())
{{ $errors->first() }}
@endif
{{-- key + label --}}
{{-- agent + sort --}}
{{-- logo url + upload --}}
OR upload below
@if($logoUrl) @else @endif
Current preview
{{-- instruction url + upload --}}
OR upload below
@if($instructionUrl) @else @endif
Current preview
{{-- active --}}
is_active) ? 'checked' : '' }} class="h-4 w-4 rounded border-slate-300 text-rose-600 focus:ring-rose-500">