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

{{ $title2 }}

{{__("ST_RETOUR")}}
@csrf @if(isset($row) && isset($row->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 = $meta['type']; $required = $meta['required'] ?? 'required' ; $requiredLabel = (!empty($meta['required']) && $meta['required'] === true) ? '*' : ''; $width = isset($meta['width']) ? "{$meta['width']}" : 'col-6'; $label = $meta['label'] ?? ucfirst(str_replace('_', ' ', $field)); @endphp
@if($type === 'color')
@elseif($type === 'datetime')
@elseif($type === 'date')
@elseif($type === 'time')
@elseif($type === 'textarea')
Description{{$requiredLabel}}
@elseif($type === 'select')
@else
@endif
@endforeach

* Champs obligatoire

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