<?php $__env->startSection('title', 'Detail Jurnal'); ?>
<?php $__env->startSection('page-title', 'Detail Jurnal'); ?>

<?php $__env->startSection('content'); ?>
<div class="card">
    <div class="card-header bg-white">
        <div class="d-flex justify-content-between align-items-center">
            <div>
                <h5 class="mb-0"><i class="fas fa-book me-2"></i>Detail Jurnal Harian</h5>
                <small class="text-muted">Lihat detail jurnal kegiatan magang siswa</small>
            </div>
            <a href="<?php echo e(route('pembimbing-sekolah.jurnal')); ?>" class="btn btn-outline-secondary btn-sm">
                <i class="fas fa-arrow-left me-1"></i>Kembali
            </a>
        </div>
    </div>
    
    <div class="card-body">
        <div class="row align-items-start">
            <!-- Kolom kiri -->
            <div class="col-md-8">
                <!-- Info Siswa -->
                <div class="row mb-4">
                    <div class="col-sm-3">
                        <strong>Siswa:</strong>
                    </div>
                    <div class="col-sm-9">
                        <div>
                            <span class="fw-bold"><?php echo e($jurnal->user->siswa->nama ?? $jurnal->user->name); ?></span>
                        </div>
                    </div>
                </div>

                <div class="mb-4">
                    <div class="row mb-3">
                        <div class="col-sm-3">
                            <strong>Tanggal:</strong>
                        </div>
                        <div class="col-sm-9">
                            <?php
                            $tanggal = \Carbon\Carbon::parse($jurnal->tanggal);
                            $hariIndonesia = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'];
                            $bulanIndonesia = ['', 'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'];
                            ?>
                            <span class="fw-bold"><?php echo e($hariIndonesia[$tanggal->dayOfWeek]); ?>, <?php echo e($tanggal->day); ?> <?php echo e($bulanIndonesia[$tanggal->month]); ?> <?php echo e($tanggal->year); ?></span>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <div class="col-sm-3">
                            <strong>Status:</strong>
                        </div>
                        <div class="col-sm-9">
                            <?php if($jurnal->status_verifikasi == 'pending'): ?>
                                <span class="badge bg-warning text-dark fs-6">
                                    <i class="fas fa-clock"></i> Menunggu Verifikasi
                                </span>
                            <?php elseif($jurnal->status_verifikasi == 'diterima'): ?>
                                <span class="badge bg-success fs-6">
                                    <i class="fas fa-check"></i> Diterima
                                </span>
                            <?php else: ?>
                                <span class="badge bg-danger fs-6">
                                    <i class="fas fa-times"></i> Ditolak
                                </span>
                            <?php endif; ?>
                        </div>
                    </div>

                    <div class="row mb-4">
                        <div class="col-sm-3">
                            <strong>Perencanaan Kegiatan:</strong>
                        </div>
                        <div class="col-sm-9">
                            <div class="bg-light p-3 rounded">
                                <?php echo e($jurnal->perencanaan_kegiatan); ?>

                            </div>
                        </div>
                    </div>

                    <div class="row mb-4">
                        <div class="col-sm-3">
                            <strong>Pelaksanaan Kegiatan:</strong>
                        </div>
                        <div class="col-sm-9">
                            <div class="bg-light p-3 rounded">
                                <?php echo e($jurnal->pelaksanaan_kegiatan); ?>

                            </div>
                        </div>
                    </div>

                    <?php if($jurnal->catatan_instruktur): ?>
                    <div class="row mb-4">
                        <div class="col-sm-3">
                            <strong>Catatan Instruktur:</strong>
                        </div>
                        <div class="col-sm-9">
                            <div class="bg-info bg-opacity-10 border border-info p-3 rounded">
                                <i class="fas fa-comment-alt me-2 text-info"></i>
                                <?php echo e($jurnal->catatan_instruktur); ?>

                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                </div>
            </div>

            <!-- Kolom kanan -->
            <div class="col-md-4">
                <div class="card bg-light h-100">
                    <div class="card-body">
                        <h6 class="card-title"><i class="fas fa-info-circle me-2"></i>Informasi Jurnal</h6>
                        <ul class="list-unstyled mb-3">
                            <?php if($jurnal->status_verifikasi == 'pending'): ?>
                                <li><i class="fas fa-clock text-warning me-2"></i>Jurnal menunggu verifikasi</li>
                            <?php elseif($jurnal->status_verifikasi == 'diterima'): ?>
                                <li><i class="fas fa-check text-success me-2"></i>Jurnal telah diverifikasi</li>
                                <li><i class="fas fa-calendar-check text-info me-2"></i>Diverifikasi: <?php echo e($jurnal->updated_at->format('d/m/Y')); ?></li>
                            <?php else: ?>
                                <li><i class="fas fa-times text-danger me-2"></i>Jurnal ditolak</li>
                                <li><i class="fas fa-calendar-times text-warning me-2"></i>Ditolak: <?php echo e($jurnal->updated_at->format('d/m/Y')); ?></li>
                                <?php if($jurnal->catatan_instruktur): ?>
                                    <li><i class="fas fa-comment text-info me-2"></i>Catatan telah diberikan</li>
                                <?php endif; ?>
                            <?php endif; ?>
                        </ul>

                        <hr>

                        <div class="d-grid gap-2">
                            <a href="<?php echo e(route('pembimbing-sekolah.siswa')); ?>" class="btn btn-outline-secondary btn-sm">
                                <i class="fas fa-users me-1"></i>Lihat Semua Siswa
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<style>
.card-body p {
    line-height: 1.6;
    color: #495057;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}
</style>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.pembimbing-sekolah', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\presensi-magang\resources\views/pembimbing-sekolah/jurnal/show.blade.php ENDPATH**/ ?>