{{ $row->title; }}
Waktu Tersisa:
Waktu Tersisa:
Task List
@foreach($topics as $topic) @php /*$results = DB::select("select * from php_topics where id = ?", [$topic->id]); if (!empty($results)) { $result = $results[0]; $result->id; } else { echo "No results found."; }*/ if($topic->id == $_GET['phpid'] ){ $display = "display:block !important"; $transform = "transform: rotate(180deg); !important"; }else{ $display = ""; $transform = ""; } @endphp
{{ $topic->title }}
@php $row = DB::table('php_topics') ->leftJoin('php_topics_detail', 'php_topics.id', '=', 'php_topics_detail.id_topics') ->select('*') ->where('php_topics_detail.id_topics', '=', $topic->id ) ->get(); $no = 1; @endphp @foreach($row as $r) @php $no++; $count_ = ($no/$detailCount)*10; $phpdid = isset($_GET['start']) ? $_GET['start'] : ''; if($r->id == $phpdid and $r->id_topics == $_GET['phpid']){ $active = 'color:#000; font-weight:bold; text-decoration: underline;'; }else{ $active = ''; } @endphp
{{ $r->title }}
@endforeach @php $top = $topic->id; $task = DB::table('php_task')->where('id_topics', $top)->first(); // Menggunakan first() untuk mengambil satu baris pertama @endphp @if($task) @php $phpid = $_GET['phpid']; $type = $_GET['type']; $id = $r->id_topics; $results = DB::select("select * from php_task where id_topics = ?", [$id]); foreach($results as $u){ $tsk = $u->task_no; $task_get = isset($_GET['task']) ? $_GET['task'] : ''; $phpid = isset($_GET['phpid']) ? $_GET['phpid'] : ''; if($tsk == $task_get && $top == $phpid ){ $active_task = 'color:#000; font-weight:bold; text-decoration: underline;'; }else{ $active_task = ''; } @endphp
{{ $u->task_name }}
@php } @endphp @endif
@endforeach
Work Results
@php if($pdf_reader == 0): echo $html_start; @endphp @php else: @endphp
@php endif; @endphp