@extends('layouts.app') @section('page-metaSEO') BCM Soft - Gravite @endsection @section('page-css') @endsection @section('content') @php $saveButtonLabel = ($mode == 'create') ? __('ST_AD_Create') : __('ST_AD_Save') ; @endphp

{{ $title2 }}

{{__("ST_RETOUR")}}
@csrf @if(isset($id_p) && isset($id_p)) @endif @foreach($config['columns'] as $field => $meta) @php $value = isset($row->$field) ? $row->$field : ''; if (isset($meta['editable']) && $meta['editable'] == 0) continue;// skip field $type = isset($meta['type']) ? "{$meta['type']}" : "text"; $required = $meta['required'] ?? 'required' ; $requiredLabel = (!empty($meta['required']) && $meta['required'] == true) ? '*' : ''; $multiselect = (isset($meta['multiselect']) && $meta['multiselect'] == true) ? ' multiple ' : ''; $width = isset($meta['width']) ? "{$meta['width']}" : 'col-6'; $customClass = isset($meta['class']) ? "{$meta['class']}" : ''; $label = $meta['label'] ?? ucfirst(str_replace('_', ' ', $field)); @endphp
@if($type === 'color')
@elseif($type === 'datetime')
@elseif($type === 'date')
@elseif($type === 'time')
@elseif($type === 'textarea')
{!! $label !!}{{$requiredLabel}}
@elseif($type === 'checkbox')
{{--
{{ $label }}{{ $requiredLabel }}
--}}
@elseif($type === 'select')
@elseif($type == 'component') @if (!empty($meta['component']))
@if (!empty($meta['data_for_component'])) @php $aa = [ $meta['data_name_for_component'] => $meta['data_for_component'] ?? null, 'label'=>$label ?? null ]; $aa['disabled'] = false; if (isset($meta['disabled']) && $meta['disabled'] == true){ $aa['disabled'] = true; } $aa['selected_value'] = null; if (isset($meta['selected_value']) && $meta['selected_value'] != null){ $aa['selected_value'] = $meta['selected_value']; } @endphp @include('components.' . $meta['component'], $aa) @else @include('components.' . $meta['component'], ['row' => $row ?? null]) @endif
@endif @else
@endif
@endforeach

* Champs obligatoire

{{__("ST_RETOUR")}}
{{--
Code*
libelle*
--}} {{--
Description
--}} @endsection @section('scripts') @include('js.js-home') @endsection