@extends('dashboard.core') @section('dashboard-body') @if(!empty($help_text))
{!! $help_text !!}
@endif
@foreach($columns as $column)
@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)) @else
(No Image Set)
@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 Current {{ strtoupper($column['ext']) }} @else
(No {{ strtoupper($column['ext']) }} Set)
@endif @elseif($column['type'] == 'display')
{{ $value }}
@endif
@endif
@endforeach
@endsection