|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<!-- begin::main content -->
<main class="main-content">
<div class="container">
<!-- begin::page header -->
<div class="page-header">
<h3 class="text-capitalize"><?php echo e($pagetitle); ?></h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="<?php echo e(asset('dashboard')); ?>">Dashboard</a>
</li>
<li class="breadcrumb-item active" aria-current="page">List</li>
</ol>
</nav>
</div>
<!-- end::page header -->
<?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
<?php if($errors->any()): ?>
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo e($error); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<div class="card">
<?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('add-school')){ ?>
<div class="card-header">
<a href="<?php echo e(asset('add-school')); ?>" class="btn btn-info text-white">
<i class="fa fa-plus"></i></a>
</div>
<?php } ?>
<div class="card-body">
<?php if(isset($schoolClass)): ?>
<div class="table-responsive-md">
<table id="example1" class="table table-striped table-bordered">
<thead class="text-uppercase">
<tr>
<th>#<?php echo e(__('message.si')); ?></th>
<th><?php echo e(__('message.school')); ?></th>
<th><?php echo e(__('message.code')); ?></th>
<th><?php echo e(__('message.address')); ?></th>
<th><?php echo e(__('message.photo')); ?></th>
<?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('edit-school')){ ?>
<th><?php echo e(__('message.status')); ?></th>
<?php } ?>
<th><?php echo e(__('message.action')); ?></th>
</tr>
</thead>
<tbody>
<?php if(!empty($schoolClass)): ?>
<?php $__currentLoopData = $schoolClass; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Scho): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($Scho->id); ?></td>
<td><?php echo e($Scho->school); ?></td>
<td><?php echo e($Scho->code); ?></td>
<td>
<?php echo e($Scho->email); ?>
<br>
<?php echo e($Scho->mobile); ?>
<Br>
<?php echo e($Scho->address); ?>
</td>
<td>
<img style="width:80px;height:80px;"
src="<?php echo e(asset('public/school/logo/' . $Scho->logo)); ?>">
</td>
<?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('edit-school')){ ?>
<td style="width:10%;">
<div class="custom-checkbox-success">
<label class="switch">
<input <?php echo e($Scho->status == '1' ? 'checked' : ''); ?>
type="checkbox" name="status"
data-id="<?php echo e($Scho->id); ?>" value="1"
data-link="<?php echo e(asset('school-change-status')); ?>"
class="custom-control-input status-change"
id="customSwitch2_">
<span class="slider round"></span>
</label>
</div>
</td>
<?php } ?>
<td>
<div class="dropdown">
<button class="btn btn-sm btn-dark dropdown-toggle" type="button"
data-toggle="dropdown">
<?php echo e(__('message.action')); ?>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('view-school')){ ?>
<a class="dropdown-item"
href="<?php echo e(route('school.show', $Scho->id)); ?>"><?php echo e(__('message.view')); ?></a>
<?php } ?>
<?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('edit-school')){ ?>
<a class="dropdown-item"
href="<?php echo e(route('school.edit', $Scho->id)); ?>"><?php echo e(__('message.edit')); ?></a>
<?php } ?>
<?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('delete-school')){ ?>
<a class="dropdown-item delete-confirm"
link="<?php echo e(route('school.destroy', $Scho->id)); ?>"
href="javascript:;"><?php echo e(__('message.delete')); ?></a>
<?php } ?>
</div>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<h1>No Record Found!!</h1>
<?php endif; ?>
</tbody>
</table>
</div>
<?php endif; ?>
</div>
</div>
</div>
</main>
<!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\school_saas_erp\resources\views/school/list.blade.php ENDPATH**/ ?>