@extends("common.layout") @php $page_title = $pageServiceName . ' 교재 ' . ($textbook?->id ? '상세보기 ('.$textbook->id.')' : '등록'); @endphp @section('page-title', $page_title) @section("header") {!! resource('css/form.css') !!} {!! resource('js/form.js') !!} @endsection @section("content")
@csrf

{{ $page_title }}
@if ($textbook?->id) @if ($User->is->root) @endif @endif

교재 구분
{{--교재 번호--}} @if ($textbook?->id)
{{ $textbook?->id }}
@endif {{--활성 구분--}}
activated == 1)>
@if ($textbook?->activated === 0 && $textbook?->deactivated_at) ({{ explode(" ", $textbook->deactivated_at)[0] }}) @endif
{{--모듈--}}
@php if (isset($textbook->module)) $modules = explode('|', $textbook->module); else $modules = []; @endphp @foreach (config('system.modules') as $key => $module)
@endforeach
{{--과목--}}
@php $subjectsKeys = !empty($textbook->subjects) ? explode('|', $textbook->subjects):[]; @endphp @foreach ($subjects as $subjectKey => $subjectName)
@endforeach
{{--레벨--}}
@foreach (App\Domains\Product\Infrastructure\Model\Textbook::LEVEL as $key => $level)
level)>
@endforeach
{{--판매 구분--}}
@foreach (App\Domains\Product\Infrastructure\Model\Textbook::SALES_TYPE as $key => $sales_type)
sales_type)>
@endforeach
기본 정보
@if (isset($textbook->audio_s3_key) && !empty($textbook->audio_s3_key)) {{ basename($textbook->audio_s3_key) }} @endif
썸네일
@if ($textbook?->thumbnail_s3_key)
@endif
@if($textbook)
포함 강좌
@foreach ($textbook->courses as $course) @endforeach
번호 강좌명 모듈 활성 등록일
{{ $course->id }} {{ $course->name }} {{ $course->module }} {{ $course->activated ? 'Y':'' }} {{ explode(" ", $course->created_at)[0] }}
포함 상품
@foreach ($textbook->getIncludedProducts()->all() as $product) @endforeach
번호 상품명 모듈 판매중 등록일
{{ $product->id }} {{ $product->name }} {{ $product->module }} {{ $product->is_sellable ? 'Y':'' }} {{ explode(" ", $product->created_at)[0] }}
변경 로그
@foreach ($textbook->getParsingLogs() as $log) @endforeach
번호 일시 활성 구분 모듈 레벨 판매구분 교재명 오디오파일 썸네일 판매가 담당자 자세히 보기
{{ $log->id }} @if (isset($log->created_at)) {{ $log->created_at }} @else - @endif @if ($log->activated == 1) 활성 @else 비활성 @endif {{ $log->module }} {{ $log->level }} {{ $log->sales_type }} {{ $log->name }} {{ !empty($log->audio_s3_key) ? $log->audio_s3_key:'' }} {{ !empty($log->thumbnail_s3_key) ? $log->thumbnail_s3_key:'' }} {{ $log->sales_price }} {{ $log->created_by }}
@endif @endsection @push("script") @endpush