@php $listCheck = 1; @endphp @php $list = $Template->list('과정소개'); @endphp @if ($method=='edit')
content에 적어야 하는 변수 정리
title : 타이틀을 적을 수 있습니다.( 타이틀은 1번만 쓰셔야 합니다.)
text : 설명 등등 글을 적을 수 있습니다.
img : 이미지 등록할 수 있습니다.
table : 테이블을 만들 수 있습니다. ( 테이블 타이틀, 테이블, 테이블 하단 텍스트로 구성되어 있습니다. )
@endif
@foreach($list as $cont) @if( $cont->str == 'title')
@php $title = $Template->text('타이틀'.$listCheck++); @endphp

{{ $title->str }}

@endif @if( $cont->str == 'text')
@php $text = $Template->text('설명'.$listCheck++); @endphp

{!! $text->str !!}

@endif @if( $cont->str == 'img')
@php $img = $Template->image('이미지'.$listCheck++); @endphp
{{ $img->alt }}
@endif @if( $cont->str == 'table')
@php $table = $Template->text('테이블 타이틀'.$listCheck++); @endphp

{{ $table->str }}

@if ($method=='edit')
테이블은 에디터를 사용해서 만들어야 합니다
@endif @php $html = $Template->editor('테이블'.$listCheck++); @endphp
{!! $html !!}
    @php $list = $Template->list($table->str.'리스트'); @endphp @foreach($list as $cont)
  • {{ $cont->str }}
  • @endforeach
@endif @endforeach