<?php $__env->startSection('content'); ?>	
<div id="wrapper">
   <div id="page-wrapper">
      <div class="container-fluid">
      <div class="white-box">
         <div class="row">
            <div class="col-md-12">
                     <ol class="breadcrumb breadcrumbs">
                        <li><a href="<?php echo e(URL::to('admin/facilitylist')); ?>">Home</a></li>
                        <li class="active">Company View</li>
                     </ol>
                     <a  onclick="history.go(-1);"  type="button"  class="btn btn-sm" style="background-color:#0066cc;text-decoration: none;color:#ffffff; margin-top: 0.5%;"><i class="fa fa-arrow-left" aria-hidden="true"></i>
                     Back to Companies</a>
                  <h2  style="color:#0066CC;font-size:20px; padding-left:0px; margin-top: 0.5%; margin-bottom: 0.5% " >Company Information
                  </h2>
                  <div class="table-responsive">
                     <table class="table table-striped" id="myTable">
                        <thead style="background-color:#0066cc;" >
                           <tr>
                              <th>Facilities</th>
                              <th>Operator Company</th>
                              <th>Propert Owner Company</th>
                              <th>UST Owner Company</th>
                              <th>Created Date</th>
                           </tr>
                        </thead>
                        <tbody class="tabody">
                           <?php if(count($company_list_view)>0): ?>
                              <?php foreach($company_list_view as $company_list_view1): ?>
                              <tr>
                                 <td class="center text" ><a href="<?php echo e(url('admin/companyfacilities/' .$company_list_view1->Facility__c)); ?>"><?php echo e($company_list_view1->Facility__r->Name); ?></a></td>
                                 <td class="center" >
                                    <input type="checkbox" name="" <?php if($company_list_view1->Operator_Company__c != 1){ echo 'checkbox disabled'; } else { echo 'checked disabled'; } ?> >
                                 </td>
                                 <td class="center" ><input type="checkbox" name="" <?php if($company_list_view1->Property_Owner__c != 1){ echo 'checkbox disabled'; } else { echo 'checked disabled'; } ?> >
                                 </td>
                                 <td class="center" >
                                    <input type="checkbox" name="" <?php if($company_list_view1->UST_Owner_Company__c != 1){ echo 'checkbox disabled'; } else { echo 'checked disabled'; } ?> >
                                 </td>
                                 <td class="center" ><?php echo e($company_list_view1->CreatedDate); ?></td>
                              </tr>
                              <?php endforeach; ?>
                           <?php else: ?>
                              <tr> 
                                 <td>There are no Records</td>
                              </tr>
                           <?php endif; ?>
                        </tbody>
                     </table>
                  </div>
               </div>
               <?php foreach($company_account_details as $company_account_detail): ?>
               <div class="col-lg-12 col-md-12 col-sm-12"  style=" width: 101%; padding-left:0px" >
                  <div class="col-sm-6">
                     <div class="panel panel-default">
                        <div class="panel-heading" style="background-color:#E66720; color:#FFFFFF;padding:5px;">
                           <h4 style="padding-left:5%;">
                              Account Information
                           </h4>
                        </div>
                        <div class="panel-body" style="background-color: #F5F5F5">
                           <div class="col-sm-12">
                              <div class="col-sm-6" style="padding-left:0px">
                                 <div class="form-group">
                                    <label class="labname">Account Name</label>
                                    <p><?php echo e($company_account_detail->Operator_Company_Name__r->Name); ?></p>
                                 </div>
                                 <div class="form-group">
                                    <label class="labname">SOS Link</label>
                                    <p><?php echo e($company_account_detail->SOS_Link__c); ?></p>
                                 </div>
                                 <div class="form-group">
                                    <label class="labname">Account Owner</label>
                                    <p><?php echo e($company_account_detail->Client_Contact__r->Name); ?></p>
                                 </div>
                                 <div class="form-group">
                                    <label class="labname">Company Contact</label>
                                    <p><?php echo e(isset($company_account_detail->Client_Contact__r->Name)?$company_account_detail->Client_Contact__r->Name:''); ?> </p>
                                 </div>
                              </div>
                              <div class="col-sm-6">
                                 <div class="form-group">
                                    <label class="labname">Contact Title</label>
                                    <p><?php echo e(isset($company_account_detail->Contact_Title__c)?$company_account_detail->Contact_Title__c:''); ?></p>
                                 </div>&nbsp
                                 <div class="form-group" >
                                    <label class="labname">Phone</label>
                                    <p><?php echo e(isset($company_account_detail->Phone)?$company_account_detail->Phone:''); ?> </p>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
                  <div class="col-sm-6">
                     <div class="panel panel-default">
                        <div class="panel-heading" style="background-color:#E66720; color:#FFFFFF; padding:5px;">
                           <h4 style="padding-left:5%;">
                              Address Information
                           </h4>
                        </div>
                        <div class="panel-body" style="background-color: #F5F5F5">
                           <div class="col-sm-12">
                              <div class="col-sm-6" style="padding-left:0px">
                                 <div class="form-group" >
                                    <label class="labname">Address</label>
                                    <p><?php echo e($company_account_detail->BillingStreet); ?>,<?php echo e($company_account_detail->BillingCity); ?>,<?php echo e($company_account_detail->BillingState); ?> <?php echo e($company_account_detail->BillingPostalCode); ?>,<?php echo e($company_account_detail->BillingCountry); ?>.</p>
                                 </div>
                              </div>
                              <div class="col-sm-6">
                                 <div class="form-group">
                                    <label class="labname">Country</label>
                                    <p><?php echo e(isset($company_account_detail->County__c)?$company_account_detail->County__c:''); ?></p>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
                  </div>
               
               <div class="col-lg-6 col-md-6 col-sm-6">
                     <div class="panel panel-default">
                        <div class="panel-heading" style="background-color:#E66720; color:#FFFFFF;padding:5px;">
                           <h4 style="padding-left:5%">
                              Additonal Details
                           </h4>
                        </div>
                        <div class="panel-body" style="background-color: #F5F5F5">
                           <div class="col-sm-12">
                              <div class="col-sm-6" style="padding-left:0px;">
                                 <div class="form-group">
                                    <label class="labname">Tax Id</label>
                                    <p><?php echo e(isset($company_account_detail->Tax_ID__c)?$company_account_detail->Tax_ID__c:''); ?></p>
                                 </div>
                              </div>
                              <div class="col-sm-6">
                                 <div class="form-group">
                                    <label class="labname">Federal Id</label>
                                    <p><?php echo e(isset($company_account_detail->Federal_ID__c)?$company_account_detail->Federal_ID__c:''); ?></p>
                                 </div>
                              </div>
                           </div>
                        </div>
                     </div>
               </div>
			   </div>
               <?php endforeach; ?>
         </div>
      </div>
      </div>
   </div>
</div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>