<?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">

        <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">
                            <?php if($cases->case_opened == 1): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Employee Name:
                                    <strong><?php echo e($cases->emp_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">Employee ID:
                                    <strong><?php echo e($cases->emp_id); ?></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">Claim Category:
                                    <strong><?php echo e($cases->claim_category); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <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">Subject:
                                    <strong><?php echo e($cases->subject); ?></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">Previous Hearing Date:
                                <?php if(!empty($cases->previous_hearing_date)): ?>
                                    <strong><?php echo e(formatDate($cases->previous_hearing_date)); ?></strong>
                                    <?php else: ?>
                                    <strong>-</strong>
                                    <?php endif; ?>
                                </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:
                                <?php if(!empty($cases->next_hearing_date)): ?>
                                <strong><?php echo e(formatDate($cases->next_hearing_date)); ?></strong>
                                    <?php else: ?>
                                    <strong>-</strong>
                                    <?php endif; ?>
                                    
                                </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:
                                <?php if(is_numeric($cases->court_name)): ?> 
                                <strong><?php echo e($cases->name_c); ?></strong>
                                        <?php else: ?> 
                                            <strong><?php echo e($cases->court_name); ?></strong>
                                        <?php endif; ?>
                                    
                                </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 class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary  border-muted">Court District:
                                    <strong><?php echo e($cases->district_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 Number:
                                    <strong><?php echo e($cases->court_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 File Year:
                                    <strong><?php echo e($cases->case_file_year); ?></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">Act Details:
                                    <strong><?php echo e($cases->act_details); ?></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>
                        <?php if(!empty($hearings->current_file_copy)): ?>
                        <p class="p-0 m-0 text-dark"><strong>Case Document: </strong>
                        <a href='<?php echo e(url("public/assets/cases/$hearings->current_file_copy ")); ?>' class="btn btn-xs btn-primary pl-3 pr-3" download>Download</a></p>
                        <?php endif; ?>
                    </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; ?>
                    <a href="javascript:history.go(-1)" class="btn btn-secondary m-1" title="Return to previous page">Back</a>
                    <!-- <a class="btn btn-secondary m-1" href="<?php echo e(route('list.all.cases')); ?>">Back</a> -->

                </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 /home/data/public_html/legal/resources/views/pages/cases/viewCaseDetails.blade.php ENDPATH**/ ?>