@extends('dashboard.core') @section('dashboard-body') @if($help_text != '')
{!! $help_text !!}
@endif
@foreach($columns as $column)
@set('value', $item[$column['name']]) @if($column['type'] == 'hidden') @elseif($column['type'] == 'user') @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))
View {{ strtoupper($column['ext']) }} @if(array_key_exists('delete', $column) && $column['delete']) Delete {{ strtoupper($column['ext']) }} @endif
@endif @elseif($column['type'] == 'display')
{{ $value }}
@endif
@endif
@endforeach
@endsection