@set('value', $item !== null ? $item[$column['name']] : '')
@set('type', $id == 'new' && array_key_exists('type-new', $column) ? $column['type-new'] : $column['type'])
@set('ext', array_key_exists('ext', $column) ? $column['ext'] : 'jpg')
@if($type == 'hidden')
@elseif($type == 'user')
@elseif($type != 'display' || $id != 'new')
@if($type == 'string')
@elseif($type == 'text')
@elseif($type == 'currency')
@elseif($type == 'date')
@elseif($type == 'mkd')
@elseif($type == 'select')
@elseif($type == 'list')
@foreach($column['columns'] as $list_column)
@endforeach
@if($id != 'new')
@foreach($value as $row)
@foreach($column['columns'] as $list_column)
@endforeach
@endforeach
@endif
@elseif($type == 'image')
@set('current_image', "/uploads/$model/img/$id-" . $column['name'] . '.' . $ext)
@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