@foreach([1 => 'Active', 0 => 'Deactive'] as $val => $label)
external_status ?? 1) == $val ? 'checked' : '' }}>
@endforeach
@if(!empty($location?->api_token))
@else
Save location to generate iframe URL
@endif
{{-- Design --}}
Design
@foreach([
'bg_color_expand' => 'Background Colour Expand',
'bg_color' => 'Background Colour',
'text_color' => 'Text Colour',
'button_color' => 'Button Colour',
'button_text_color' => 'Button Text Colour'
] as $field => $label)
@endforeach
{{-- Buttons --}}
@foreach([1 => 'Active', 0 => 'Deactive'] as $val => $label)
phone_button ?? 1) == $val ? 'checked' : '' }}>
@endforeach
@foreach([1 => 'Active', 0 => 'Deactive'] as $val => $label)
show_form ?? 1) == $val ? 'checked' : '' }}>
@endforeach
{{-- Locations --}}
Locations
@php
$selectedLocations = old('locations', $location->locations ?? []);
@endphp
@foreach($locations as $loc)
id, $selectedLocations) ? 'checked' : '' }}>
@endforeach
{{-- Brands --}}
Marke
@foreach($brands as $brand)
@php
$brandKey = Str::slug($brand);
$selectedType = old("brands.$brandKey", $savedBrands[$brandKey] ?? 'all');
@endphp
@foreach(['all','new','used','none'] as $type)
@endforeach
@endforeach