@extends('layouts.sidebar') @section('content')
@push('sidebar-stylesheets') @endpush

@if($LinkID !== 0) {{__('messages.Edit')}} @else {{__('messages.Add')}} @endif {{__('messages.Block')}}

@method('POST') @csrf
{{-- --}}
{{infoIcon(__('messages.Click for a list of available link blocks'))}} {{-- --}} {{-- --}}
{{-- @include("components.pageitems.".$SelectedLinkType['typename']."-form", ['some' => 'data']) --}}
{{__('messages.Cancel')}}


{{--
{{__('messages.More information')}}
                            {{__('messages.editlink.description.1-5')}}
                            {{__('messages.editlink.description.2-5')}}
                            {{__('messages.editlink.description.3-5')}}
                            {{__('messages.editlink.description.4-5')}}
                            {{__('messages.editlink.description.5-5')}}
                    
--}}
@php $custom_order = [1, 2, 8, 6, 7, 3, 4, 5,]; $sorted = $LinkTypes->sortBy(function ($item) use ($custom_order) { return array_search($item['id'], $custom_order); }); @endphp @foreach ($sorted as $lt) @php $title = __('messages.block.title.'.$lt['typename']); $description = __('messages.block.description.'.$lt['typename']); @endphp
{{$title}}

{{$description}}

@endforeach
@endsection @push("sidebar-scripts") @endpush