@extends('manager.layouts.app') @section('page_title') {{(!empty($page_title) && isset($page_title)) ? $page_title : ''}} @endsection @section('content')

{{(!empty($p_title) && isset($p_title)) ? $p_title : ''}}

{{(!empty($p_summary) && isset($p_summary)) ? $p_summary : ''}}

{{ $data->title }}

{{ $data->slug }}

{{ \App\Enums\BookType::options()[$data->type] ?? '-' }}

{{ \App\Enums\BookLanguage::options()[$data->language] ?? '-' }}

{{ optional($data->publish_date)->format('d M Y h:i A') }}

{{ $data->class?->name ?? '-' }}

{{ $data->parentCategory?->category_name ?? '-' }}

{{ $data->childCategory?->category_name ?? '-' }}

@if($data->status) Published @else Draft @endif

@if($data->thumbnail) {{ $data->title }} @else
No Thumbnail
@endif
@if($data->files->count())
Book Files
@foreach($data->files as $index => $file) @endforeach
# File Name File Size Actions
{{ $index + 1 }} {{ $file->file_name }} {{ number_format($file->file_size / 1024, 2) }} KB View PDF Download
Book Links
@foreach($data->links as $index => $link) @endforeach
{{ $index + 1 }} {{ $link->link }} Open Link
@endif
@endsection