@csrf @method('PUT')

{{ __('Call To Action Buttons') }}

@foreach($template->body['templateButtons'] ?? [] as $key => $button) @php $option_type=''; $display_text=''; $button_action=''; if(isset($button['urlButton'])){ $option_type='urlButton'; $display_text=$button['urlButton']['displayText'] ?? ''; $button_action=$button['urlButton']['url'] ?? ''; } elseif(isset($button['callButton'])){ $option_type='callButton'; $display_text=$button['callButton']['displayText'] ?? ''; $button_action=$button['callButton']['phoneNumber'] ?? ''; } elseif(isset($button['quickReplyButton'])){ $option_type='quickReplyButton'; $display_text=$button['quickReplyButton']['displayText'] ?? ''; } @endphp @if($key == 0)

{{ __('Button 1') }}

@else

{{ __('Button') }} {{ $key+1 }}

@endif @endforeach