@extends('index') @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('s_search_status')) @php $national = App\Lesson::join('lesson_details', 'lesson_details.lesson_id', '=', 'lessons.id') ->select('lessons.*') ->where('lessons.category',1) ->where('lesson_details.year_id',session('s_year')) ->where('lesson_details.classroom_id',session('s_classroom')) ->where('lessons.active',1) ->where('lesson_details.active',1) ->orderBy('lesson_details.urutan') ->get(); $area = App\Lesson::join('lesson_details', 'lesson_details.lesson_id', '=', 'lessons.id') ->select('lessons.*') ->where('lessons.category',2) ->where('lesson_details.year_id',session('s_year')) ->where('lesson_details.classroom_id',session('s_classroom')) ->where('lessons.active',1) ->where('lesson_details.active',1) ->orderBy('lesson_details.urutan') ->get(); $interestc1 = App\Lesson::join('lesson_details', 'lesson_details.lesson_id', '=', 'lessons.id') ->select('lessons.*') ->where('lessons.category',3) ->where('lessons.subcategory',1) ->where('lesson_details.year_id',session('s_year')) ->where('lesson_details.classroom_id',session('s_classroom')) ->where('lessons.active',1) ->where('lesson_details.active',1) ->orderBy('lesson_details.urutan') ->get(); $interestc2 = App\Lesson::join('lesson_details', 'lesson_details.lesson_id', '=', 'lessons.id') ->select('lessons.*') ->where('lessons.category',3) ->where('lessons.subcategory',2) ->where('lesson_details.year_id',session('s_year')) ->where('lesson_details.classroom_id',session('s_classroom')) ->where('lessons.active',1) ->where('lesson_details.active',1) ->orderBy('lesson_details.urutan') ->get(); $interestc3 = App\Lesson::join('lesson_details', 'lesson_details.lesson_id', '=', 'lessons.id') ->select('lessons.*') ->where('lessons.category',3) ->where('lessons.subcategory',3) ->where('lesson_details.year_id',session('s_year')) ->where('lesson_details.classroom_id',session('s_classroom')) ->where('lessons.active',1) ->where('lesson_details.active',1) ->orderBy('lesson_details.urutan') ->get(); @endphp
{{ csrf_field() }}
@php $i = 1; foreach($national as $rows) { @endphp @php $i++; } @endphp @php $i = 1; foreach($area as $rows) { @endphp @php $i++; } @endphp @if(count($interestc1)) @php $i = 1; foreach($interestc1 as $rows) { @endphp @php $i++; } @endphp @endif @if(count($interestc2)) @php $i = 1; foreach($interestc2 as $rows) { @endphp @php $i++; } @endphp @endif @if(count($interestc3)) @php $i = 1; foreach($interestc3 as $rows) { @endphp @php $i++; } @endphp @endif
No Mata Pelajaran
A. MUATAN NASIONAL
{{ $rows->name }}
B. MUATAN KEWILAYAHAN
{{ $rows->name }}
C1. DASAR BIDANG KEAHLIAN
{{ $rows->name }}
C2. DASAR PROGRAM KEAHLIAN
{{ $rows->name }}
C3. DASAR KOMPETENSI KEAHLIAN
{{ $rows->name }}
@endif @endsection @push('script') @endpush