<?php $__env->startSection('title','Case Report Summary 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">
                <h1 class="m-0">Case Report Summary Details</h1>
            </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 Report Summary Details</li>
                </ol>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->

<section class="content">
    <div class="container-fluid">    
        <div class="card mt-4" id="">
            <div class="card-header">
                <div class="card-title font-weight-bolder">
                    <span id="search_type"></span> <span id="search_from_to"></span>
                </div>
<!--                 
                <button type="button" class="float-right btn btn-sm btn-primary print_btn hide_in_print">Print
                    Report</button> -->
            </div>
            <div class="card-body" id="report_body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                        <tr>
                           <th>Sr No.</th>
                            <th>Name Of Appellant</th>
                            <th>Case Number</th>
                            <th>Case Register For</th>
                            <th>Case File Date</th>
                            <th>Subject</th>
                            <th>Plantiff</th>
                            <th>Defendant</th>
                            <th>Lawyer Name</th>
                            <th>Hearing Date</th>
                            <th>Case Remark</th>
                            <th>Court Number</th>
                            <th>Court Name</th>
                            <th>Act Detalis</th>
                            <th>District</th>
                            <th>Status</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php if($cases->count() > 0): ?>
                        <?php
                        $count = 1;
                        ?>
                        <?php $__currentLoopData = $cases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr class="<?php echo e(($data->case_status == 3) ? 'bg-success' : ''); ?>">
                            <td><?php echo e($count); ?></td>
                            <td>
                                <?php if($data->case_register_for == 1): ?>
                                <a href="<?php echo e(route('view.cases.details',$data->id)); ?>"><?php echo e($data->plaintiff); ?></a>
                                <?php endif; ?>
                                
                                <?php if($data->case_register_for == 2): ?>
                                <a href="<?php echo e(route('view.cases.details',$data->id)); ?>"><?php echo e($data->plaintiff); ?></a>
                                <?php endif; ?>
                                
                            </td>
                            <td><?php echo e($data->case_number); ?></td>
                            <td><?php echo e(($data->case_register_for == 1) ? 'EPF Appeal' : 'Other'); ?></td>
                            <td><?php echo e(formatDate($data->case_file_date)); ?></td>
                            <td><?php echo e($data->subject); ?></td>
                            <td><?php echo e($data->plaintiff); ?></td>
                            <td><?php echo e($data->defendant); ?></td>
                            <td><?php echo e($data->lawyer_name); ?></td>
                            <td><?php echo e(formatDate($data->hearing)); ?></td>
                            <td><?php echo e($data->case_remark); ?></td>
                            <td><?php echo e($data->court_number); ?></td>
                            <?php if(is_numeric($data->court_name)): ?> 
                                            <td><?php echo e($data->coname); ?></td>
                                        <?php else: ?> 
                                            <td><?php echo e($data->court_name); ?></td>
                                        <?php endif; ?>
                            <td><?php echo e($data->act_details); ?></td>
                            <td><?php echo e($data->district_name); ?></td>
                            <?php if($data->case_status == 1 ): ?>
                            <td>Pending</td>
                            <?php elseif($data->case_status == 2 ): ?>
                            <td>Processing</td>
                            <?php elseif($data->case_status == 3 ): ?>
                            <td>Closed</td>
                            <?php endif; ?>

                        </tr>
                        <?php
                        $count++;
                        ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
<?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/reportSummaryDetails.blade.php ENDPATH**/ ?>