<?php $__env->startSection('title','View Case Details | '); ?>
<?php $__env->startSection('content'); ?>

<!-- Content Header (Page header) -->
<div class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <h4 class="m-0">View Case Details</h4>
            </div><!-- /.col -->
            <div class="col-sm-6">
                <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="#">Home</a></li>
                    <li class="breadcrumb-item active">Case Management</li>
                </ol>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
    <div class="container-fluid">
    <a class="btn btn-primary m-1" href="<?php echo e(route('list.all.cases')); ?>">Back</a>

        <div class="card card-dark" id="claim_details">
            <div class="card-header hide_in_print">
                <div class="card-title">
                    <h4 class="card-title">Case Details</h4>
                </div>
                <button type="button" class="btn btn-sm btn-light float-right print_btn">Print</button>
            </div>
            <div class="card-body">
                <?php if(session('success')): ?>
                <div class="alert alert-success alert-dismissible fade show" role="alert">
                    <strong><?php echo e(session('success')); ?></strong>
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <?php endif; ?>
                <?php if(session('error')): ?>
                <div class="alert alert-danger alert-dismissible fade show" role="alert">
                    <strong><?php echo e(session('error')); ?></strong>
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <?php endif; ?>
                <div class="row">

                    <?php if(!empty($cases)): ?>
                    <div class="col-md-12 border p-1">
                        <h5 class="font-weight-bolder text-info border-bottom border-secondary p-2 mb-2">Case Details
                        </h5>
                        <div class="row">
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Case Number:
                                    <strong><?php echo e($cases->case_number); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Case Status:
                                    <strong>
                                        <?php if($cases->case_status == 1): ?>
                                        <?php echo e(__('Pending')); ?>

                                        <?php elseif($cases->case_status == 2): ?>
                                        <?php echo e(__('Processing')); ?>

                                        <?php elseif($cases->case_status == 3): ?>
                                        <?php echo e(__('Closed')); ?>

                                        <?php endif; ?>
                                    </strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Plaintiff:
                                    <strong><?php echo e($cases->plaintiff); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Defendant:
                                    <strong><?php echo e($cases->defendant); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Case Reported Date:
                                    <strong><?php echo e(formatDate($cases->case_reported_date)); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Case File Date:
                                    <strong><?php echo e(formatDate($cases->case_file_date)); ?></strong>
                                </p>
                            </div>
                            
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Lawyer Name:
                                    <strong><?php echo e($cases->lawyer_name); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Lawyer Mobile:
                                    <strong><?php echo e($cases->lawyer_mobile); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Hearing Date:
                                    <strong><?php echo e(formatDate($cases->hearing_date)); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Next Hearing Date:
                                    <strong><?php echo e(formatDate($cases->next_hearing_date)); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Court Name:
                                    <strong><?php echo e($cases->court_name); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Court Address:
                                    <strong><?php echo e($cases->court_address); ?></strong>
                                </p>
                            </div>
                        </div>
                    </div>
                    <?php if(!empty($cases->case_hearings)): ?>
                    <?php $__currentLoopData = $cases->case_hearings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hearings): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-md-12 mt-1 border p-1">
                        <p class="p-0 m-0 text-dark"><strong>Hearing Date:</strong> <?php echo e(formatDate($hearings->next_hearing_date)); ?></p>
                        <p class="p-0 m-0 text-dark"><strong>Current Case Remark: </strong><?php echo e($hearings->current_remark); ?></p>
                        <p class="p-0 m-0 text-dark"><strong>Case Document: </strong>
                        <a href='<?php echo e(url("assets/cases/$hearings->current_file_copy ")); ?>' class="btn btn-xs btn-primary pl-3 pr-3">View</a></p>
                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php endif; ?>
                    <?php else: ?>
                    <div class="col-md-12 col-lg-12 col-sm-12 mb-2">
                        <p class="p-0 m-0 text-secondary border-muted">
                            <strong>No Record Found</strong>
                        </p>
                    </div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
    <!-- /.container-fluid -->
</section>
<!-- /.content -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/claim_and_case_management/resources/views/pages/cases/viewCaseDetails.blade.php ENDPATH**/ ?>