<?php $__env->startSection('small_title'); ?>
<?php echo e(__("lable.setting")); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>



                <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0 font-size-18">Setting</h4>

                                    <div class="page-title-right">
                                        <ol class="breadcrumb m-0">
                                            <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard.index')); ?>">Dashboard</a></li>
                                            <li class="breadcrumb-item active">Setting</li>
                                        </ol>
                                    </div>

                                </div>
                            </div>
                            <?php if(Session::has('message')): ?>
                            <div class="alert alert-info"><?php echo e(Session::get('message')); ?></div>

                            <?php endif; ?>

                        </div>
                        <!-- end page title -->


                        <div class="row">
                            <div class="col-12">
                                <div class="card">
                                    <div class="card-header">
                                        <?php if($companies->isEmpty()): ?>
                                        <a type="button" href="<?php echo e(route('companies.create')); ?>" class="btn btn-primary "> Add </a>
                                        <?php endif; ?>
                                    </div>
                                    <div class="card-body">
                                        <div class="table-rep-plugin">
                                            <div class="table-responsive mb-0" data-pattern="priority-columns">


                        <div class="table-responsive">

                            <table class="table table-striped">
                            <tr>
                                <th>  Name  </th>
                                <th>  Logo </th>

                                <th>  Phone 1 </th>
                                <th>  Phone 2 </th>
                                <th>  Email 1 </th>
                                <th>  Email 2 (Order) </th>
                                <th>  Location 1 </th>
                                <th>  Location 2 </th>
                                <th>  Facebook </th>
                                <th>  Twitter </th>
                                <th>  Youtube </th>
                                <th>  Instagram </th>
                                <th>  Linkedin </th>
                                <th>  Action </th>

                            </tr>

                            <?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <tr>
                                <td>
                                    <p><?php echo e($company->name); ?></p>


                                </td>
                                <td>
                                    <img src="<?php echo e(render_image_path($company->logo)); ?>" width="150" height="100" title="<?php echo e($company->name); ?> image">
                                   <hr/>
                                    <img src="<?php echo e(render_image_path($company->da_logo)); ?>" width="150" height="100" title="<?php echo e($company->name); ?> image">
                                   <hr>
                                      <img src="<?php echo e(render_image_path($company->footer_logo)); ?>" width="150" height="100" title="<?php echo e($company->name); ?> image">
                                      <hr>
                                      <img src="<?php echo e(render_image_path($company->da_footer_logo)); ?>" width="150" height="100" title="<?php echo e($company->name); ?> image">
                                </td>
                                <td>
                                    <p><?php echo e($company->phone1); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->phone2); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->email1); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->email2); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->location1); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->location2); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->facebook); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->twitter); ?></p>


                                </td>
                                <td>
                                    <p><?php echo e($company->youtube); ?></p>


                                </td>
                                  <td>
                                    <p><?php echo e($company->instagram); ?></p>


                                </td>

                                   <td>
                                    <p><?php echo e($company->linkedin); ?></p>


                                </td>
                                    <td>
                                            <form action="<?php echo e(route('companies.destroy' , $company->id)); ?>" method="post" id="form-<?php echo e($company->id); ?>">
                                                <?php echo e(csrf_field()); ?>

                                                <?php echo e(method_field("DELETE")); ?>

                                            </form>

                                            <a href="<?php echo e(route('companies.edit' , $company->id)); ?>" ><i class="fas fa-edit"></i></a>

                                            &nbsp;
                                                           <a href=""
                                               onclick="if(confirm('Are you sure to delete?')) {
                                                       event.preventDefault();
                                                       document.getElementById('form-<?php echo e($company->id); ?>').submit();
                                                       }else{ event.preventDefault(); }"
                                               ><i class="fas fa-trash-alt"></i></a>
                                        </td>


                            </tr>

                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        </table>

                        <br>


                        </div>

                                            </div>

                                        </div>

                                    </div>
                                </div>
                                <!-- end card -->
                            </div> <!-- end col -->
                        </div> <!-- end row -->



                    </div>
                    <!-- container-fluid -->
                </div>
                <!-- End Page-content -->



<?php $__env->stopSection(); ?>


<?php echo $__env->make('Admin.master_page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wssupport/app.mami/resources/views/Admin/companies/index.blade.php ENDPATH**/ ?>