@extends('.frontend.default') @php $file_count = $educationResource->attachments->whereNotNull('file_size')->count(); $attachment_count = $educationResource->attachments->count(); @endphp @section('content')
@include('frontend.template.education_resource.class_tag', ['education_resource_class_tag' => $educationResource->educationResourceClass])
@include('frontend.template.education_resource.target_tag', ['education_resource_target_tag' => $educationResource->educationResourceTarget])
@foreach($educationResource->attachments->groupBy('type_id') as $attachment)
@include('frontend.template.education_resource.attachment.type_tag',['education_resource_attachment_type_tag'=> $attachment->first()->type])
@endforeach
@if($file_count > 0) 下載所有資源({{ $file_count }}) @elseif($attachment_count > 0)
只提供資源連結
@else
未找到相關資源
@endif

{{$educationResource->title}}

上架時間:
{{\Carbon\Carbon::parse($educationResource->on_shelf_date)->format('d/m/Y')}}
提供單位:
{{ $educationResource->unit->c_unitname }}
資源簡介:
@nl2br($educationResource->description ?? '-')
學習重點:
@nl2br($educationResource->learning_points ?? '-')
教學建議:
@nl2br($educationResource->teaching_advice ?? '-')
使用說明:
@nl2br($educationResource->use_instructions ?? '-')
@if($educationResource->url) @endif
此教學資源版權屬香港青年協會所有,不得作商業用途。違者須負法律責任。

資源列表

@if($attachment_count > 0) @foreach($educationResource->attachments as $attachment) @endforeach @else @endif
檔案名稱 類別 大小 上傳日期 上傳單位 下載
{{$attachment->name . ($attachment->file_type ? '.'.$attachment->file_type : '')}} {{optional($attachment->type)->name ?? '-'}} {{$attachment->fileSizeFormat ?? '-'}} {{\Carbon\Carbon::parse($attachment->updated_at)->format('d/m/Y')}} {{$attachment->unit->c_unitname}} @switch($attachment->file_or_url) @case(\App\Models\EducationResource\EducationResourceAttachment::FILE_OR_URL_IS_FILE) @break @case(\App\Models\EducationResource\EducationResourceAttachment::FILE_OR_URL_IS_URL) @break @endswitch
未找到相關資源

單位提供以下服務

@endsection @section('pagescript') @endsection @section('pagecss') @endsection