@extends('admin.layouts.main') @section('content')

{{ trans('messages.Show Form') }}

{{ $form->name }}

Desc: {{ $form->desc }}
title in print: {{ $form->title_print }}
footer in print: {{ $form->footer_print }}
Approval: {{ $form->approved == 1 ? "Approval" : "Not Approval" }}

Form Data

@php $bills = [ 'text' => 'badge-info-light', 'number' => 'badge-primary-light', 'textarea' => 'badge-danger-light', 'file' => 'badge-warning-light', 'checkbox' => 'badge-secondary-light', 'radio' => 'badge-dark' ]; @endphp @foreach ($form->formInputs as $key => $input)
{{ $input->label }}
{{ $input->input_type }} @if($input->value != null) {{ $input->value }} @endif @if($input->placeholder != null) {{ $input->placeholder }} @endif @if(in_array($input->input_type,['checkbox','radio'])) @foreach($input->inputsElemnts as $el) {{ $el->name }} @endforeach @endif
@endforeach
@endsection @section('modal') @endsection @section('script') @endsection