@extends('layouts.portal') @section('title', 'Materials') @section('portal')

Class materials

@if ($locked > 0)
{{ $locked }} item{{ $locked > 1 ? 's are' : ' is' }} for Second Semester. Pay for Second Semester to unlock.
@endif
@forelse ($materials as $m)

{{ $m->title }}

@if ($m->description)

{{ $m->description }}

@endif {{ ['all' => 'All students', 'first' => 'First Semester', 'second' => 'Second Semester'][$m->semester] }}
@if ($m->url)Open link@endif @if ($m->file_path)Download@endif
@empty

Materials will appear here once classes begin.

@endforelse
@endsection