@extends('layouts.app') @section('bodyClass', 'form-builder form-builder-overview') @section('content') @section('PageHeading', 'Form Builder') @php // Url Fetching // $urlSegments = request()->segments(); // $encodedStudioId = $urlSegments[count($urlSegments) - 4]; // $encodedFormId = $urlSegments[count($urlSegments) - 3]; $studioId = $studioId; //$formId = $formId; $studioDetails = FormHelper::getStudioConfig($studioId); $primaryColor = ($studioDetails->primary_color) ?? '#1E1545'; $secondaryColor = ($studioDetails->secondary_color) ?? '#CF0D20'; @endphp @php // Url Fetching // $urlSegments = request()->segments(); // $encodedStudioId = $urlSegments[count($urlSegments) - 4]; // $encodedFormId = $urlSegments[count($urlSegments) - 3]; $studioId = $studioId; //$formId = $formId; $studioDetails = FormHelper::getStudioConfig($studioId); $primaryColor = ($studioDetails->primary_color) ?? '#1E1545'; $secondaryColor = ($studioDetails->secondary_color) ?? '#CF0D20'; @endphp
@include('forms.inputs.section_prize_details',compact('prizeForm')) @include('forms.inputs.heading_large',compact('prizeForm')) @include('forms.inputs.body_copy',compact('prizeForm')) @include('forms.inputs.text_field_small',['firstLoad' => '1']) @include('forms.inputs.text_field_email',['firstLoad' => '1']) @include('forms.inputs.text_field_mobile',['firstLoad' => '1']) @include('forms.inputs.prize_game_rules') @include('forms.inputs.section_prize_options')
@if($prizeType == '1') @for($i = 0; $i < 7; $i++) @include('forms.inputs.prize_options_spin') @endfor @elseif($prizeType == '2') @for($i = 0; $i < 7; $i++) @include('forms.inputs.prize_options_scratch') @endfor @endif
@include('forms.inputs.prize_probability',compact('totalprobability')) @include('forms.inputs.section_prize_success') @include('forms.inputs.prize_success_heading')

Form Details

@csrf
@if (isset($images['studio_images']))
@endif

Drag and Drop Components

@if (!empty($components)) @foreach ($components as $compKey => $compValue) @php $componentId = $compValue->id; $compName = $compValue->component_name; $compCode = $compValue->component_code; $compDesc = $compValue->component_desc; $isListComp = $compValue->is_list_component; @endphp @if($isListComp == '1') @if ($compValue->id == 1 || $compValue->id == 2)
@php $imagePath = public_path('images/form_icons/' . $compValue->component_image); @endphp @if(File::exists($imagePath)) @else Default Image @endif

{{ $compName }}

{{ $compDesc }}

@else

{{ $compName }}

{{ $compDesc }}

@endif @endif @endforeach @endif