@set('value', $item !== null ? $item[$column['name']] : '')
@set('type', $id == 'new' && array_key_exists('type-new', $column) ? $column['type-new'] : $column['type'])
@if($type == 'hidden')
@elseif($type == 'user')
@elseif($type != 'display' || $id != 'new')
@if($type == 'text')
@elseif($type == 'date')
@elseif($type == 'mkd')
@elseif($type == 'select')
@elseif($type == 'image')
@set('current_image', "/uploads/$model/img/$id-" . $column['name'] . '.jpg')
@if(file_exists(base_path() . '/public' . $current_image))
@if(array_key_exists('delete', $column) && $column['delete'])
Delete Image
@endif
@endif
@elseif($type == 'file')
@set('current_file', "/uploads/$model/files/$id-" . $column['name'] . '.' . $column['ext'])
@if(file_exists(base_path() . '/public' . $current_file))
@endif
@elseif($type == 'display')
{{ $value }}
@endif
@endif