<?php $__env->startSection('title','List of Cases | '); ?>
<?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">All Cases</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</li>
                </ol>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<section class="content">
    <div class="container-fluid">
        <div class="card">
            <div class="card-header">
                <h3 class="card-title">List of all cases</h3>
            </div>
            <!-- /.card-header -->
            <div class="card-body">
                <table id="claimListing" class="table table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>Sr No.</th>
                            <th>Case Number</th>
                            <th>Case Reported Date</th>
                            <th>Case File Date</th>
                            <th>Plantiff</th>
                            <th>Defendant</th>
                            <th>Lawyer Name</th>
                            <th>Lawyer Mobile</th>
                            <th>Hearing Date</th>
                            <th>Action</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 echo e($data->case_number); ?></td>
                            <td><?php echo e(formatDate($data->case_reported_date)); ?></td>
                            <td><?php echo e(formatDate($data->case_file_date)); ?></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($data->lawyer_mobile); ?></td>
                            <td><?php echo e(formatDate($data->hearing_date)); ?></td>
                            <td class="d-flex">
                                <a href="<?php echo e(route('view.cases.details',$data->id)); ?>" class="btn btn-primary btn-sm mr-1 d-flex justify-content-center align-items-center" target="_blank">View</a>
                                <a href="<?php echo e(route('edit.cases',$data->id)); ?>" class="btn btn-secondary btn-sm mr-1 d-flex justify-content-center align-items-center" target="_blank">Edit</a>
                                <a href="<?php echo e(route('update.hearing',$data->id)); ?>" class="btn btn-warning btn-sm mr-1 d-flex justify-content-center align-items-center">Update Hearings</a>
                                
                                <!-- For update claim remark -->
                                <a href="<?php echo e(route('create.case.remark',[2,$data->id])); ?>" data-toggle="tooltip" data-placement="top" title="Update Remark of Case" class="btn btn-secondary btn-sm mr-1  d-flex justify-content-center align-items-center">Update Remark</a>
                                <!-- To view remarks -->
                                <a href="<?php echo e(route('view.remark',[2,$data->id])); ?>" data-toggle="tooltip" data-placement="top" title="View Remarks of Cases" class="btn btn-info btn-sm mr-1  d-flex justify-content-center align-items-center">View Remarks</a>
                            </td>
                        </tr>
                        <?php
                        $count++;
                        ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </tbody>

                </table>
            </div>
            <!-- /.card-body -->
        </div>
        <!-- /.card -->
    </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/caseListing.blade.php ENDPATH**/ ?>