@foreach($model::FORM_GROUP['invoiceConfig1'] as $key)
@php
if (!isset($listItem)) $listItem = '';
if (!isset($listName)) $listName = '';
if (!isset($listIndex)) $listIndex = '';
$formType = $model->formType($key);
if( strpos( $formType , 'Image' ) !== false ){
$imageCount = (substr($formType, 6) - 1);
$formType = 'Image';
}
@endphp
@if(!empty($model->labelHelp($key)))
( {{ $model->labelHelp($key) }} )
@endif
@if($formType)
@include('cms.form.field.'.$formType)
@else
Under Construction
@endif
@endforeach
@foreach($model::FORM_GROUP['invoiceConfig1Sub'] as $key)
@php
if (!isset($listItem)) $listItem = '';
if (!isset($listName)) $listName = '';
if (!isset($listIndex)) $listIndex = '';
$formType = $model->formType($key);
if( strpos( $formType , 'Image' ) !== false ){
$imageCount = (substr($formType, 6) - 1);
$formType = 'Image';
}
@endphp
@if(!empty($model->labelHelp($key)))
( {{ $model->labelHelp($key) }} )
@endif
@if($formType)
@include('cms.form.field.'.$formType)
@else
Under Construction
@endif
@endforeach
{{--
--}}
@foreach($model::FORM_GROUP['invoiceConfig2'] as $key)
@php
if (!isset($listItem)) $listItem = '';
if (!isset($listName)) $listName = '';
if (!isset($listIndex)) $listIndex = '';
$formType = $model->formType($key);
if( strpos( $formType , 'Image' ) !== false ){
$imageCount = (substr($formType, 6) - 1);
$formType = 'Image';
}
@endphp
@if(!empty($model->labelHelp($key)))
( {{ $model->labelHelp($key) }} )
@endif
@if($formType)
@include('cms.form.field.'.$formType)
@else
Under Construction
@endif
@endforeach
@if (!in_array($model->status, [Constant::INVOICE_STATUS_APPROVED, Constant::INVOICE_STATUS_VERIFICATION]))
@endif
@foreach($model::FORM_GROUP['invoiceConfig3'] as $key)
@php
if (!isset($listItem)) $listItem = '';
if (!isset($listName)) $listName = '';
if (!isset($listIndex)) $listIndex = '';
$formType = $model->formType($key);
if( strpos( $formType , 'Image' ) !== false ){
$imageCount = (substr($formType, 6) - 1);
$formType = 'Image';
}
@endphp
@if(!empty($model->labelHelp($key)))
( {{ $model->labelHelp($key) }} )
@endif
@if($formType)
@include('cms.form.field.'.$formType)
@else
Under Construction
@endif
@endforeach