2023-09-21 12:45:08 +00:00
|
|
|
<div class="card">
|
|
|
|
@php
|
|
|
|
$bg_color = $form->schema['settings']['color']['background'];
|
|
|
|
$error_msg_color = $form->schema['settings']['color']['error_msg'];
|
|
|
|
$bg_type = $form->schema['settings']['background']['bg_type'];
|
|
|
|
$bg_image = $form->schema['settings']['color']['image_path'];
|
2023-09-21 14:20:06 +00:00
|
|
|
$action = '';
|
|
|
|
|
|
|
|
switch (request()->route()->getName()) {
|
|
|
|
case 'form-data.edit':
|
|
|
|
$action = 'edit';
|
|
|
|
break;
|
|
|
|
case 'forms.show':
|
|
|
|
$action = 'show';
|
|
|
|
break;
|
|
|
|
}
|
2023-09-21 12:45:08 +00:00
|
|
|
@endphp
|
2023-09-21 14:20:06 +00:00
|
|
|
<div class="tab-content card-body"
|
2023-09-21 12:45:08 +00:00
|
|
|
id="" role="tabpanel" style='@if(!empty($bg_image) && $bg_type == 'bg_image')background-image: url("{{Storage::url(config('constants.doc_path').'/'.$bg_image)}}"); background-repeat: no-repeat;background-size: cover;background-position: right top;@else background-color: {{$bg_color}}; @endif'>
|
|
|
|
|
|
|
|
@if(!empty($is_form_closed) && $is_form_closed)
|
|
|
|
<div class="card-text">
|
|
|
|
{!! $form_closed_msg !!}
|
|
|
|
</div>
|
|
|
|
@else
|
2023-09-21 14:20:06 +00:00
|
|
|
<show-form form="{{json_encode($form)}}" action-by="{{$action_by ?? ''}}" action="{{ $action }}"></show-form>
|
2023-09-21 12:45:08 +00:00
|
|
|
@endif
|
|
|
|
</div>
|
2023-09-21 14:20:06 +00:00
|
|
|
</div>
|