diff --git a/resources/views/dashboard/edit-item.blade.php b/resources/views/dashboard/edit-item.blade.php index 498f60f..7ae92ff 100644 --- a/resources/views/dashboard/edit-item.blade.php +++ b/resources/views/dashboard/edit-item.blade.php @@ -61,6 +61,7 @@ @set('current_image', "/uploads/$model/$id.jpg") + @if(file_exists(base_path() . '/public' . $current_image))
@else diff --git a/resources/views/dashboard/elements/menu.blade.php b/resources/views/dashboard/elements/menu.blade.php index 2129153..62f12d3 100644 --- a/resources/views/dashboard/elements/menu.blade.php +++ b/resources/views/dashboard/elements/menu.blade.php @@ -4,5 +4,9 @@ ]) @foreach($menu as $menu_item) -