@set('value', $item[$column['name']])
@if($column['type'] == 'hidden')
@elseif($column['type'] != 'display' || $id != 'new')
@if($column['type'] == 'text')
@elseif($column['type'] == 'date')
@elseif($column['type'] == 'mkd')
@elseif($column['type'] == 'select')
@elseif($column['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($column['type'] == 'file')
@set('current_file', "/uploads/$model/files/$id-" . $column['name'] . '.' . $column['ext'])
@if(file_exists(base_path() . '/public' . $current_file))
@endif
@elseif($column['type'] == 'display')
{{ $value }}
@endif