@extends('admin.layout.app') @section('body')

{{ $material->title }}

{{ __('admin.id') }}: {{ $material->id }} {{ __('admin.course') }}: {{ $material->course?->title ?? '—' }} @if($material->type === 'file') {{ __('admin.file_2') }} @else {{ __('admin.video_link') }} @endif
{{ __('admin.type_3') }} {{ $material->type }}
{{ __('admin.uploaded_by_2') }} {{ $material->uploader?->name ?? '—' }}
{{ __('admin.date_2') }} {{ $material->created_at?->format('Y-m-d') }}

@if($material->type === 'file') @if($material->file_path) {{ __('admin.open_file') }} @else
{{ __('admin.no_file_uploaded') }}
@endif @else @if($material->video_url) {{ __('admin.open_video') }} @else
{{ __('admin.no_video_url') }}
@endif @endif
@endsection