@extends("common.layout") @section("header") {!! resource('js/components/multiSelect.js') !!} {!! resource('css/components/multiSelect.css') !!} {!! resource('css/form.css') !!} @endsection @section("content") @php use Carbon\Carbon; $useComment = $board['isComment'] && $post; $content=null; if ( $post ) { if ( $board['prefix'] == 'center') { $content = $post?->content(); } else { $content = $post?->content; } if ( $board['prefix'] == 'event') { $useComment = $post->is_use_comment == 1; } } @endphp

$board['prefix'] ]) }}" class="mr-3"> {{ $board['name'] }} 게시글 {{ $post ? "수정" : "등록" }}

{{-- todo 실 오픈 전 아래 주석 활성화 하기 -> 데이터 수동 변경 필요하여 주석처리 --}} {{-- --}}
$board['isWrite']])>
기본정보
  • {{-- {{ $service == 'ielts' ? "인강" : "어학원" }} --}}
  • @if ($post)
  • {{ $post?->id }}
  • {{ $content->writer?->name }}
  • {{ number_format($content->views) }}
  • @if (isset($post->likeables))
  • {{ number_format($post->likeCnt()) }}
  • @endif
  • {{ $post?->created_at }}
  • @endif
전시정보
  • enable?->activated == 1)>
    @if ($board['isWrite'])
    @endif
  • @if ($board['isFixed'])
  • enable?->is_fixed)>
  • @endif @yield("board-display")
@yield("board-group")
게시글 정보
@if ($board['prefix'] == 'refund')
* 환급승인 및 거절 후 상태를 변경하실 수 없습니다. 신중하게 검토해주세요
@endif
    @yield("board-content") @if (! in_array($board['prefix'], ['center', 'qna']))
  • @if ($board['prefix'] == 'free') @yield("board-title-custom") @else @endif
  • @if ($board['prefix'] == 'event')
    {{ $post?->content_html }}
    @elseif (in_array($board['prefix'], ['pass', 'center', 'class']) ) @else
    @if ($board['isWrite']) @else
    {!! $post ? nl2br($content?->content) : "" !!}
    @endif
    @endif
  • @endif @if ($board['isAttachment'] > 0 && $board['isWrite'] && ! in_array($board['prefix'], ['pass', 'center', 'class']))
  • @else @if (isset($post->attachments) && ! in_array($board['prefix'], ['qna', 'event']))
  • @foreach ($post->getAttachments() as $attachment)
    ! in_array($attachment->extension, ['png', 'jpg', 'jpeg', 'gif']) ])> @if (in_array($attachment->extension, ['png', 'jpg', 'jpeg', 'gif'])) @else @endif
    @endforeach
  • @endif @endif
@if ($useComment) @php $configComment = ['type' => 'board', 'prefix' => $board['prefix'], 'id' => $post?->id ]; if (isset($board['is_limit'])) { $configComment['is_limit'] = $board['is_limit']; } @endphp
@endif
@endsection @push("script") @yield("board-script") @endpush