@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@csrf @method('PUT')

View {{ $title_menu }}


{{-- retrieve table header --}} @foreach ($table_header as $header) @if ($header->type == 'image') @php $imageValue = $list->{$header->field}; $isUrl = str_starts_with($imageValue, 'http://') || str_starts_with($imageValue, 'https://'); $thumbPath = 'storage/' . $imageValue . 'tumb.png'; $fullPath = 'storage/' . $imageValue; $defaultImage = asset('img/profile.png'); if ($isUrl) { $imageUrl = $imageValue; } elseif (!empty($imageValue) && file_exists(public_path($thumbPath))) { $imageUrl = asset($thumbPath); } elseif (!empty($imageValue) && file_exists(public_path($fullPath))) { $imageUrl = asset($fullPath); } else { $imageUrl = $defaultImage; } if ($isUrl) { $modalUrl = $imageValue; } elseif (!empty($imageValue) && file_exists(public_path($fullPath))) { $modalUrl = asset($fullPath); } else { $modalUrl = $defaultImage; } @endphp
image
@else
@endif @endforeach

{{-- check flag js on dmenu --}} @if ($jsmenu == '1') @if (view()->exists("js.{$dmenu}")) @push('addjs') {{-- file js in folder (resources/views/js) --}} @include('js.' . $dmenu); @endpush @else @push('addjs') @endpush @endif @endif @endsection @push('js') @endpush