

<?php $__env->startSection('content'); ?>
<div class="container-xxl flex-grow-1 container-p-y">
  <div class="card">
    <div class="card-header d-flex justify-content-between align-items-center">
      <div>
        <h5 class="mb-0">Submission #<?php echo e($submission->id); ?></h5>
        <small class="text-muted">
          Assignment: <?php echo e($submission->assignment->title ?? '-'); ?> •
          Student: <?php echo e($submission->student->name ?? '-'); ?> (ID: <?php echo e($submission->student_id); ?>)
        </small>
      </div>
      <div class="d-flex gap-2">
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('update assignment submissions')): ?>
          <a href="<?php echo e(route('assignment-submissions.edit', $submission)); ?>" class="btn btn-outline-warning btn-sm">Edit</a>
        <?php endif; ?>
        <a href="<?php echo e(route('assignment-submissions.index')); ?>" class="btn btn-outline-secondary btn-sm">Back</a>
      </div>
    </div>
    <hr class="mb-0"/>

    <div class="card-body">
      <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('success')): ?> <div class="alert alert-success"><?php echo e(session('success')); ?></div> <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

      <div class="border rounded p-3">
        <div class="mb-2"><strong>Submitted At:</strong> <?php echo e(optional($submission->submitted_at)->format('Y-m-d H:i')); ?></div>
        <div class="mb-2"><strong>Grade:</strong> <?php echo e($submission->grade ?? '-'); ?></div>
        <div class="mb-2"><strong>File:</strong>
          <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($submission->file_path): ?>
            <a href="<?php echo e(asset($submission->file_path)); ?>" target="_blank">View / Download</a>
          <?php else: ?>
            -
          <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\xampp\htdocs\digitizing-academy.lifelinehealthcare.com.pk\resources\views\assignment_submissions\show.blade.php ENDPATH**/ ?>