@extends('layouts.app')
@section('content')
@php
date_default_timezone_set('Asia/Makassar');
// dd(date('Y-m-d'));
@endphp
<div class="card">
<div class="card-body">
<div class="card-title">
<h1>Detail {{$title}}</h1>
<hr>
<span style="font-weight: bolder; font-size: 16px;">Kegiatan : </span><span style="font-size: 16px;">{{$jadwal->kegiatan}}</span><br>
<span style="font-weight: bolder; font-size: 16px;">Location : </span><span style="font-size: 16px;">{{$jadwal->location}}</span><br>
<span style="font-weight: bolder; font-size: 16px;">Petugas : </span><span style="font-size: 16px;">{{$jadwal->petugas->nama_petugas}}</span><br>
<span style="font-weight: bolder; font-size: 16px;">Catatan : </span><span style="font-size: 16px;">{{$jadwal->notes}}</span><br>
<br>
<table class="table table-bordered">
<thead>
<tr>
<th>No</th>
<th>Tanggal Kegiatan</th>
<th>Waktu Mulai Kegiatan</th>
<th>Waktu Selesai Kegiatan</th>
<th>Status</th>
<th>Score</th>
<th>Feedback Orang Tua</th>
</tr>
</thead>
<tbody>
@foreach ($jadwal->target_capaian as $a)
<tr>
<td>{{$loop->iteration}}</td>
<td>{{date('d, F Y', strtotime($a->tanggal))}}</td>
<td>{{date('h:i A', strtotime($a->waktu_awal))}}</td>
<td>{{date('h:i A', strtotime($a->waktu_akhir))}}</td>
<td>{{$a->capaian == "0" ? "Belum Tercapai" : "Sudah Tercapai"}}</td>
<td>{{$a->score ?? 0}}</td>
<td>{{$a->feedback_orang_tua == "" ? "-" : $a->feedback_orang_tua}}</td>
{{-- <td>
@if (date('Y-m-d') == $a->tanggal)
@can('edit '.$menu)
<form action="{{ url($url.'/'.$a->jadwal_id) }}?target={{$a->id}}" method="POST" id="targetForm-{{$a->id}}" style="display:inline;">
@csrf
@method('PUT')
<button type="button" onclick="confirmTarget({{ $a->id }})" class="btn btn-sm btn-success" ><i class="fa fa-pen"> </i>
Target Tercapai</button>
</form>
@endcan
@else
Belum saatnya!
@endif
</td> --}}
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@push('scripts')
@endpush
@endsection
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]