HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //var/www/html/punjabcabs/storage/framework/views/d714fb18e9f9e3c797922b8c72c8010e7c4bea57.php
<?php $__env->startSection('title', 'Service Types '); ?>

<?php $__env->startSection('content'); ?>
<div class="content-area py-1">
    <div class="container-fluid">

        <div class="row bg-title">
            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                <h4 class="page-title"><?php echo app('translator')->get('admin.member.service_types'); ?></h4><a href="<?php echo e(route('admin.service.create')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.member.add_new_service'); ?></a>
            </div>
            <div class="col-lg-6 col-sm-6 col-md-6 col-xs-12">
                <ol class="breadcrumb">
                    <li><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo app('translator')->get('admin.dashboard'); ?></a></li>
                    <li class="active"><?php echo app('translator')->get('admin.list_service_types'); ?></li>
                </ol>
            </div>
        </div>

        <div class="box box-block bg-white">
            <table class="table table-striped table-bordered dataTable" id="table-2">
                <thead>
                    <tr>
                        <th><?php echo app('translator')->get('admin.member.id'); ?></th>
                        <th><?php echo app('translator')->get('admin.member.service_name'); ?></th>
                        <th>Flag fall</th>
                        <th>Distance Rate</th>
                        <th>Booking fee</th>
                        <th>Wating fee</th>
                        <th><?php echo app('translator')->get('admin.member.service_image'); ?></th>
                        <th><?php echo app('translator')->get('admin.member.view'); ?></th>
                        <th><?php echo app('translator')->get('admin.member.action'); ?></th>
                    </tr>
                </thead>
                <tbody>
                <?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $service): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                    <tr>
                        <td><?php echo e($index + 1); ?></td>
                        <td><?php echo e($service->name); ?></td>
                        <td><span class="text-info"><?php echo e(currency($service->d_flag)); ?></span></td>
                        <td><span class="text-info"><?php echo e(currency($service->d_distance)); ?></span></td>
                        <td><span class="text-info"><?php echo e(currency($service->d_booking)); ?></span></td>
                        <td><span class="text-info"><?php echo e(currency($service->d_waiting)); ?></span></td>
                        <td>
                            <?php if($service->image): ?> 
                                <img src="<?php echo e($service->image); ?>" style="height: 50px" >
                            <?php else: ?>
                                N/A
                            <?php endif; ?>
                        </td>
                        <td>
                            <a href="<?php echo e(route('admin.service.view', $service->id)); ?>" class="btn btn-info btn-rounded b-a-0 waves-effect waves-light"><i class="fa fa-eye"></i> <?php echo app('translator')->get('admin.member.view'); ?></a>
                        </td>
                        <td>
                            <form action="<?php echo e(route('admin.service.destroy', $service->id)); ?>" method="POST">
                                <?php echo e(csrf_field()); ?>

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

                                <a href="<?php echo e(route('admin.service.edit', $service->id)); ?>" class="btn btn-success btn-rounded label-left b-a-0 waves-effect waves-light">
                                    <span class="btn-label"><i class="fa fa-pencil"></i></span> <?php echo app('translator')->get('admin.member.edit'); ?>
                                </a>
                                <button class="btn btn-danger btn-rounded label-left b-a-0 waves-effect waves-light" onclick="return confirm('Are you sure?')">
                                    <span class="btn-label"><i class="fa fa-trash"></i></span>  <?php echo app('translator')->get('admin.member.delete'); ?>
                                </button>
                            </form>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                </tbody>
                <tfoot>
                    <tr>
                        <th><?php echo app('translator')->get('admin.member.id'); ?></th>
                        <th><?php echo app('translator')->get('admin.member.service_name'); ?></th>
                        <th>Flag fall</th>
                        <th>Distance Rate</th>
                        <th>Booking fee</th>
                        <th>Wating fee</th>
                        <th><?php echo app('translator')->get('admin.member.service_image'); ?></th>
                        <th><?php echo app('translator')->get('admin.member.view'); ?></th>
                        <th><?php echo app('translator')->get('admin.member.action'); ?></th>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>