@extends('admin.layout.layout') @push('style') @endpush @push('script') {{-- 基礎 data --}} {{-- 多圖上傳 --}} @if($config['multpic_set'] == 1) {{-- 多圖上傳 end --}} @endif {{-- 多檔上傳 --}} @if($config['multfile_set'] == 1) {{-- 多檔上傳 end --}} @endif @endpush @section('content')

{{ $config['page_title'] }} - {{ $data['title'] ?? '新增' }}

@if(empty($data)) 新增資料 @else 修改資料 @endif
@if($action == 'upd') @method('patch') @endif @csrf
@if(config('system.env') == 'local' || Request::query('dev') == 'page') @adminRow @slot('title') {{ $config['col_title'] }}後台 title @endslot @endadminRow @adminRow @slot('title') {{ $config['col_title'] }}對應 View path @endslot @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['act_id_set']) || $action == 'add') @adminRow @slot('title') {{ $config['col_title'] }}上架 @endslot   @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['name_id_set']) || $action == 'add') @adminRow @slot('title') {{ $config['col_title'] }}標題/名稱 @endslot @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['e_name_id_set']) || $action == 'add') @adminRow @slot('title') {{ $config['col_title'] }}英文標題/名稱 @endslot @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['sub_name_id_set']) || $action == 'add') @adminRow @slot('title') {{ $config['col_title'] }}副標題/名稱 @endslot @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['link_id_set']) || $action == 'add') @adminRow @slot('title') {{ $config['col_title'] }}連結 @endslot @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['pic_id_set']) || $action == 'add') @adminRow @slot('title') 上傳圖片 @endslot
@if($config['pic_edit'] == 1) 編輯圖片 @endif @endadminRow @adminRow @slot('title')   @endslot
圖片限 {{ $config['pic_mime'] }} 檔,檔案大小不可超過 {{ get_file_max($config['pic_max_limit']) }} @if( in_array($data['id'], [1,2] ) ) ! 圖片請用 990 * 750 的寬高上傳 @elseif( in_array($data['id'], [3,4] ) ) ! 圖片請用 1920 * 810 的寬高上傳 @else ! 圖片請用 1920 * 450 的寬高上傳 @endif
@endadminRow @adminRow @slot('title') {{ $config['col_title'] }}圖片 Alt @endslot @endadminRow @endif @if($config['multpic_set'] == 1) @if(in_array( ($data['id'] ?? 0), $config['pics_id_set']) || $action == 'add') {{-- 多圖上傳 --}} @adminRow @slot('title') 上傳多圖 @endslot 上傳 {{--
--}}
圖片限 {{ $config['multpic_mime'] }} 檔,檔案大小不可超過 {{ get_file_max($config['multpic_max_limit']) }} {{-- @if( ($data['id'] ?? 0) == ) ! 圖片請用 * 的寬高上傳 @elseif( ($data['id'] ?? 0) == ) ! 圖片請用 * 的寬高上傳 @endif --}}
@endadminRow @adminRow @slot('title') 已上傳多圖 @endslot
@endadminRow {{-- 多圖上傳 end--}} @endif @endif @if(in_array( ($data['id'] ?? 0), $config['file_id_set']) || $action == 'add') @adminRow @slot('title') 上傳檔案 @endslot
檔案限 {{ $config['file_mime'] }} 檔 , 大小限制 {{ get_file_max($config['file_max_limit']) }} 內!
@if(!empty($data['file'])) 下載檔案 檢視檔案 @endif @endadminRow @endif @if($config['multfile_set'] == 1) @if(in_array( ($data['id'] ?? 0), $config['files_id_set']) || $action == 'add') {{-- 多檔上傳 --}} @adminRow @slot('title') 上傳檔案 @endslot 上傳
0%
檔案限 {{ $config['multfile_mime'] }} 檔,檔案大小不可超過 {{ get_file_max($config['multfile_max_limit']) }}
@endadminRow @adminRow @slot('title') 已上傳檔案 @endslot
@endadminRow {{-- 多檔上傳 end --}} @endif @endif @if(in_array( ($data['id'] ?? 0), $config['utube_id_set']) || $action == 'add') {{-- youtube 影片嵌入 --}} @adminRow @slot('title') 影音連結 @endslot @endadminRow @adminRow @slot('title')   @endslot
連結範例:https://www.youtube.com/watch?v=JtHd7RZvTiU

https://youtu.be/JtHd7RZvTiU

@endadminRow @if(!empty($data['utube'])) @adminRow @slot('title')   @endslot
@endadminRow @endif {{-- youtube 影片嵌入 end--}} @endif @if(in_array( ($data['id'] ?? 0), $config['s_info_id_set']) || $action == 'add') @adminRow @slot('title') {{ $config['col_title'] }}簡短敘述 @endslot @endadminRow @endif @if(in_array( ($data['id'] ?? 0), $config['info_id_set']) || $action == 'add') {{-- info 編輯器 --}} @adminRow @slot('title') {{ $config['col_title'] }}詳細介紹 @endslot @endadminRow {{-- info 編輯器 end --}} @endif
@endsection