|
Server : LiteSpeed System : Linux barito.iixcp.rumahweb.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : elvh3918 ( 1528) PHP Version : 8.2.31 Disable Function : mail Directory : /home/elvh3918/public_html/tenant/storage/framework/views/ |
<?php $__env->startSection('content-modal-tenant'); ?>
<div class="modal fade" id="modal_tenant">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Tenant</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table id="tbl_modal_tenant" class="table table-sm table-bordered table-striped">
<thead>
<tr>
<th class="text-center">Photo</th>
<th class="text-center">Code</th>
<th class="text-center">Name</th>
<th class="text-center">Owner</th>
<th class="text-center">Active</th>
<th class="text-center">Updated</th>
<th class="text-center d-print-none">#</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $tenant; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>
<?php if(isset($data->image)): ?>
<?php if($data->image != null && file_exists(public_path('storage/' . config('app.dir_file_tenant') . '/' . $data->image))): ?>
<img width="50" height="50" src=<?php echo e(config('app.url') . '/storage/' . config('app.dir_file_tenant') . '/' . $data->image); ?> class="rounded">
<?php else: ?>
<img width="50" height="50" src=<?php echo e(asset(config('app.img_not_found'))); ?> class="rounded">
<?php endif; ?>
<?php else: ?>
<img width="50" height="50" src=<?php echo e(asset(config('app.img_not_found'))); ?> class="rounded">
<?php endif; ?>
</td>
<td>
<?php echo e($data->code); ?>
</td>
<td>
<?php echo e($data->name); ?>
</td>
<td>
<?php echo e($data->owner); ?>
</td>
<td>
<input type="checkbox" <?php echo e($data->is_active == 1 ? 'checked' : ''); ?> disabled />
</td>
<td>
<?php echo e($data->updated_at); ?>
</td>
<td class="d-print-none">
<a href="#" onclick='selectModalTenant(<?php echo e($data); ?>)'><span class="badge bg-warning p-1"><i class="fa fa-arrow-right mr-1"></i>Select</span></a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<div class="modal-footer d-flex justify-content-start justify-content-md-end d-print-none">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-script-modal-tenant'); ?>
<script>
new DataTable('#tbl_modal_tenant', {
order: [[2, 'asc']],
columns: [
{
data: 'photo',
name: 'photo',
targets: 0,
className: 'dt-body-center'
},
{
data: 'code',
name: 'code',
targets: 1,
className: 'dt-body-left'
},
{
data: 'name',
name: 'name',
targets: 2,
className: 'dt-body-left'
},
{
data: 'owner',
name: 'owner',
targets: 3,
className: 'dt-body-left'
},
{
data: 'is_active',
name: 'is_active',
targets: 4,
className: 'dt-body-center'
},
{
data: 'updated_at',
name: 'updated_at',
targets: 5,
className: 'dt-body-left',
width: 150,
},
{
data: 'action',
name: 'action',
targets: 6,
className: 'dt-body-center',
width: 150,
orderable: false,
}
]
});
function openHeaderTenant() {
$('#modal_tenant').modal('toggle');
}
function selectModalTenant(data) {
document.getElementById('tenant_id').value = data.id;
document.getElementById('tenant_name').value = data.name;
$('#modal_tenant').modal('hide');
}
</script>
<?php $__env->stopSection(); ?><?php /**PATH /home/elvh3918/public_html/tenant/resources/views/content/trans/incoming/partials/modal/tenant.blade.php ENDPATH**/ ?>