ldc-supportweb/resources/views/crud/formfield.blade.php
Jérémy Munsch b60913525b - bump to Bootstrap 5
- added ACL policies
- added CRUD generic
- added User crud
- added search bar
2021-06-18 15:39:19 +02:00

38 lines
1,019 B
PHP

@php
$readonly = is_callable($prop['readonly']) ? $prop['readonly']() : $prop['readonly'];
@endphp
@switch($prop['type'])
@case(CrudType::password())
@include('crud.formfields.password')
@break
@case(CrudType::boolean())
@include('crud.formfields.boolean')
@break
@case(CrudType::int())
@include('crud.formfields.int')
@break
@case(CrudType::float())
@include('crud.formfields.float')
@break
@case(CrudType::email())
@include('crud.formfields.email')
@break
@case(CrudType::text())
@include('crud.formfields.text')
@break
@case(CrudType::json())
@include('crud.formfields.json')
@break
@case(CrudType::enum())
@include('crud.formfields.enum')
@break
@case(CrudType::belongsTo())
@include('crud.formfields.belongsTo')
@break
@case(CrudType::belongsToMany())
@include('crud.formfields.belongsToMany')
@break
@case(CrudType::string())
@default
@include('crud.formfields.string')
@endswitch