@extends('layouts.admin') @section('title', '首页配置 - '.$module->name) @section('head') @include('admin.partials.modern-form-head') @include('admin.partials.modern-index-head') @endsection @section('page_subtitle', '模块配置与条目列表已拆分,支持新增与单条编辑。') @section('page_actions') 返回模块列表 @endsection @section('content')
@foreach($moduleNav as $navItem) {{ $navItem->name }} @endforeach

模块信息

* 为必填项

@csrf @method('put')
@php($moduleLinkType = old('more_link_type', $module->more_link_type))
@php($moduleExtra = old('extra', $module->extra ?? []))
建议先保存模块信息,再新增条目。

新增条目

@csrf
可选内部路由: @foreach($routeOptions as $option) {{ $option['value'] }} @endforeach

条目列表

共 {{ number_format($module->items->count()) }} 条
@forelse($module->items as $item) @empty @endforelse
标题 链接 图片 状态 排序 操作
{{ $item->title ?: '-' }}
{{ $item->subtitle ?: '-' }}
{{ $item->link_type }}
{{ $item->link_target ?: '-' }}
@if(!empty($item->image_path)) item image @else @endif @if($item->enabled) 启用 @else 停用 @endif {{ (int) $item->sort_order }} 修改
@csrf @method('delete')
当前模块暂无条目,请先新增。
@foreach($routeOptions as $option) @endforeach @endsection