@foreach($subjects as $subject) {{ $subject->code }}

{{ $subject->title }}

@endforeach