@extends('layouts.horizontal', ['title' => 'Consent Form', 'topbarTitle' => 'Consent Form']) @section('css') @vite(['node_modules/select2/dist/css/select2.min.css']) @endsection @section('content')
{{-- Title --}}

CONSENT FORM ({{ strtoupper($consent_form->concent_form) }})

{{-- Hidden --}} {{-- Customer Details --}}
Client Name:
{!! $customerdetails->customer_name !!}
Date of Visit:
{{ $customerdetails->customer_visit_date }}
Client Cell:
{{ $customerdetails->customer_cell }}
Area of Residence:
{{ $customerdetails->customer_area ?: '-' }}
Tech Consultant:
Event Date:
{{-- Structure --}}
@php($lastsection = '') @php($lastsectionheading = '')
@if($lastsection !== $consent_form->section && $consent_form->section !== 'Default')
{!! $consent_form->section !!}:
@php($lastsection = $consent_form->section) @endif @if($lastsectionheading !== $consent_form->section_heading)
@if($consent_form->section_heading !== '-')
{!! $consent_form->section_heading !!}:
@else
@endif @php($options = json_decode($consent_form->section_options, true)) @foreach($options as $type => $items) @if($type === 'checkbox' || $type === 'radio') @foreach($items as $label => $v) @endforeach @endif @if($type === 'textarea') @foreach($items as $label => $v) @endforeach @endif @if($type === 'text') @foreach($items as $label => $v)

{!! $v !!}

@endforeach @endif @endforeach
@php($lastsectionheading = $consent_form->section_heading) @endif
{{-- Signatures --}}
Client Signature:
Consultant Signature:
{{-- Save --}}
@endsection @section('scripts') @vite(['node_modules/jsignature/libs/jSignature.min.js', 'node_modules/select2/dist/js/select2.min.js']) @endsection