<?php $__env->startSection('title',' View Claim 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 Claim 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">Claim 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">Claim 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($claims)): ?>
                    <div class="col-md-12 border p-1">
                        <h5 class="font-weight-bolder text-info border-bottom border-secondary p-2 mb-2">Basic 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 bbbb border-muted">Claim Master ID:
                                    <strong><?php echo e($claims->claim_master_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 bbbb border-muted">Employee ID:
                                    <strong><?php echo e($claims->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 bbbb border-muted">Employee Name:
                                    <strong><?php echo e($claims->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 bbbb border-muted">Employee Mobile:
                                    <strong><?php echo e($claims->emp_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 bbbb border-muted">Department :
                                    <strong><?php echo e($claims->department_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 bbbb border-muted">Scheme:
                                    <strong><?php echo e($claims->scheme_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 bbbb border-muted">Division:
                                    <strong><?php echo e($claims->division_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 bbbb border-muted">Posting Place:
                                    <strong><?php echo e($claims->posting_place_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 bbbb border-muted">Date of Joinig:
                                    <strong><?php echo e(formatDate($claims->date_of_joining)); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Father/Husband's Name:
                                    <strong><?php echo e($claims->father_husband_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 bbbb border-muted">Relation:
                                    <strong><?php echo e(($claims->relation_type == 1) ? 'Father' : 'Husband'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Addhar Number:
                                    <strong><?php echo e($claims->aadhar_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 bbbb border-muted">Accident Date:
                                    <strong><?php echo e(formatDate($claims->accident_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 bbbb border-muted">Death Date:
                                    <strong><?php echo e(formatDate($claims->death_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 bbbb border-muted">Cause of Death:
                                    <strong><?php echo e($claims->cause_of_death); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Claim Type:
                                    <strong><?php echo e(($claims->claim_type == 1) ?  'Death' : 'Accident'); ?></strong>
                                </p>
                            </div>
                            <?php if($claims->claim_type == 1): ?>
                            <!-- <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Death Intimation
                                    Letter:
                                    <strong><?php echo e(($claims->death_intimation_letter == 1) ? 'Submitted' : 'Not Submit'); ?></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 bbbb border-muted">Claimant Statement:
                                    <strong><?php echo e(($claims->claimant_statement == 1) ? 'Submitted' : 'Not Submit'); ?></strong>
                                </p>
                            </div>
                            <?php if($claims->claim_type == 1): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Death Certificate:
                                    <strong><?php echo e(($claims->death_certificate == 1) ? 'Submitted' : 'Not Submit'); ?></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 bbbb border-muted">Age Proof:
                                    <strong><?php echo e(($claims->age_proof == 1) ? 'Submitted' : 'Not Submit'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Docuement of Age
                                    Proof:
                                    <strong><?php echo e($claims->age_proof_doc); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">FIR Report:
                                    <strong><?php echo e(($claims->fir_report == 1) ? 'Submitted' : 'Not Submit'); ?></strong>
                                </p>
                            </div>
                            <?php if($claims->claim_type == 1): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Post Mortem Report:
                                    <strong><?php echo e(($claims->post_mortem_report == 1) ? 'Submitted' : 'Not Submit'); ?></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 bbbb border-muted">Employer Certificate:
                                    <strong><?php echo e(($claims->employer_certificate == 1) ? 'Submitted' : 'Not Submit'); ?></strong>
                                </p>
                            </div>
                            
                            <?php if(!empty($claims->accidental_body_part)): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Permanent
                                    Disability <small>(Accidental Body Part)</small>:
                                    <strong class="d-flex">
                                        <?php $__currentLoopData = explode(',',$claims->accidental_body_part); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $disability): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                                        <span class="border border-dark pl-1 pr-1 mr-1 ">
                                            <?php echo e(getPermanentDisability($disability)); ?>

                                        </span>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </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 bbbb border-muted">Accident Time:
                                    <strong><?php echo e($claims->accident_time); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Shift Timing: 
                                    <strong><?php echo e((!empty($claims->shift_start_time)) ?  $claims->shift_start_time : '00:00:00'); ?> to <?php echo e((!empty($claims->shift_end_time)) ? $claims->shift_end_time : '00:00:00'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Accident Place:
                                    <strong><?php echo e($claims->accident_place); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Basic Information
                                    about
                                    Accident:
                                    <strong><?php echo e($claims->accident_info); ?></strong>
                                </p>
                            </div>
                            
                        </div>
                    </div>

                    <?php if($claims->claim_applied_for->count() > 0): ?>
                    <div class="col-md-12 mt-2 border-bottom">
                        <h5 class="font-weight-bolder text-info">Applied Claims</h5>
                    </div>
                    <?php $__currentLoopData = $claims->claim_applied_for; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $claims_for): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="col-md-12 mt-2 border">
                        <h5 class="font-weight-bolder text-dark border-bottom p-2">Claim for:
                            <?php echo e($claims_for->claim_category); ?></h5>
                        <div class="row">
                            <?php if($claims_for->claim_category == 'EPF' || $claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Member ID:
                                    <strong><?php echo e($claims_for->member_id); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'EPF'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">UAN Number:
                                    <strong><?php echo e($claims_for->uan_number); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">ESI Number:
                                    <strong><?php echo e($claims_for->esi_number); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'WC' || $claims_for->claim_category == 'GPA'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Policy Number:
                                    <strong><?php echo e($claims_for->policy_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 bbbb border-muted">Company Name:
                                    <strong><?php echo e($claims_for->company_name); ?></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 bbbb border-muted">Intimation Date:
                                    <strong><?php echo e(formatDate($claims_for->intimation_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 bbbb border-muted">Submission Date:
                                    <strong><?php echo e(formatDate($claims_for->submission_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 bbbb border-muted">Current Status:
                                    <strong>
                                        <?php if($claims_for->claim_status == 1): ?>
                                        Pending
                                        <?php elseif($claims_for->claim_status == 2): ?>
                                        Processing
                                        <?php elseif($claims_for->claim_status == 3): ?>
                                        Done
                                        <?php elseif($claims_for->claim_status == 4): ?>
                                        Rejected
                                        <?php elseif($claims_for->claim_status == 5): ?>
                                        Partial Amount Paid
                                        <?php endif; ?>
                                    </strong>
                                </p>
                            </div>
                            <?php if($claims_for->claim_category == 'EPF' || $claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Aadhar of Divyang Employee:
                                    <strong><?php echo e(($claims_for->aadhar == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims->claim_type == 1): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Death Certificate:
                                    <strong><?php echo e(($claims_for->death_certificate == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'EPF' || $claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Nominee's Docuement:
                                    <strong><?php echo e(($claims_for->nominee_doc == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">PAN:
                                    <strong><?php echo e(($claims_for->pan == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <small class="text-muted">(Join account in SBI bank with mother if child is
                                    minor)</small>
                                <p class="p-0 m-0 text-secondary bbbb border-muted">
                                    Bank Passbook:
                                    <strong><?php echo e(($claims_for->bank_passbook == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Ration Card:
                                    <strong><?php echo e(($claims_for->ration_card == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">3 Photos:
                                    <strong><?php echo e(($claims_for->photos == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">FIR Report:
                                    <strong><?php echo e(($claims_for->fir_report == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims->claim_type == 1 && $claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Scratch of the place
                                    where
                                    the
                                    accident happend:
                                    <strong><?php echo e(($claims_for->scratch_report == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'ESI'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">2 witnesses with aadhar mobile number:
                                    <strong><?php echo e(($claims_for->witness == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Passbook 6 months:
                                    <strong><?php echo e(($claims_for->passbook_statement == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims->claim_type == 1 && $claims_for->claim_category == 'WC' || $claims_for->claim_category == 'GPA'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Post Mortem Report:
                                    <strong><?php echo e(($claims_for->post_mortem_report == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>
                            <?php if($claims_for->claim_category == 'WC' || $claims_for->claim_category == 'GPA'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Bills:
                                    <strong><?php echo e(($claims_for->bills == 1) ? 'Submitted' : 'Not Submitted'); ?></strong>
                                </p>
                            </div>
                            <?php endif; ?>

                            <?php if($claims_for->claim_category == 'GPA'): ?>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Date of hand over the
                                    lawyer:
                                    <strong><?php echo e(formatDate($claims_for->gpa_hand_over_date)); ?></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 bbbb border-muted">Claim By:
                                    <strong><?php echo e($claims_for->claim_by); ?></strong>
                                </p>
                            </div>
                            <div class="col-md-6 col-lg-6 col-sm-12 mb-2">
                                <p class="p-0 m-0 text-secondary bbbb border-muted">Relation with Employee:
                                    <strong><?php echo e(getRelations($claims_for->relation_with_emp)); ?></strong>
                                </p>
                            </div>
                            
                        </div>

                        <!-- Print Remarks -->
                        <?php if($claims_for->remarks->count() > 0): ?>
                        
                        <div class="row">
                            <h5 class="font-weight-bolder text-dark  p-2">Remarks:</h5>
                            <div class="col-md-12">
                                <?php $__currentLoopData = $claims_for->remarks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $remark): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="card card-body bg-light p-2">
                                        <p class="p-0 m-0 text-secondary bbbb border-muted">
                                            Status:
                                            <strong> 
                                                <?php if($remark->status == 1): ?> 
                                                    <?php echo e(__('Pending')); ?>

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

                                                <?php elseif($remark->status == 3): ?>
                                                    <?php echo e(__('Done')); ?>

                                                <?php elseif($remark->status == 4): ?>
                                                    <?php echo e(__('Rejected')); ?>

                                                <?php elseif($remark->status == 4): ?>
                                                    <?php echo e(__('Partial Amount Paid')); ?>

                                                <?php endif; ?>
                                            </strong>
                                            <br>
                                            
                                        </p>
                                        <p class="p-0 m-0 text-secondary bbbb border-muted"> 
                                        Remark: <strong><?php echo e($remark->remark); ?></strong>
                                        </p>
                                        <p class="p-0 m-0 text-secondary bbbb border-muted"> 
                                          <small> Remarked By: <strong><?php echo e($remark->full_name); ?> (<?php echo e(getUserType($remark->user_role)); ?>)</strong></small>
                                        </p>
                                        <p class="p-0 m-0 text-secondary bbbb border-muted"> 
                                          <small> Remarked Date: <strong><?php echo e(formatDate($remark->created_at)); ?></strong></small>
                                        </p>
                                       
                                    </div>
                                  
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </div>
                           
                        <?php endif; ?>




                    </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    
                    <?php endif; ?>
                    <a class="btn btn-secondary m-1" href="<?php echo e(route('list.all.claims')); ?>">Back</a>
                    <?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 /home/data/public_html/legal/resources/views/pages/claims/viewClaimDetails.blade.php ENDPATH**/ ?>