Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/oldsite/storage/framework/views/7a62724452870e34bc0cb1e5bc3a363d.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e(__('admin.Agent Property')); ?></title> <?php $__env->stopSection(); ?> <?php $__env->startSection('admin-content'); ?> <!-- Main Content --> <div class="main-content"> <section class="section"> <div class="section-header"> <h1><?php echo e(__('admin.Agent Property')); ?></h1> </div> <div class="section-body"> <a href="<?php echo e(route('admin.property.create')); ?>" class="btn btn-primary"><i class="fas fa-plus"></i> <?php echo e(__('admin.Add New')); ?></a> <div class="row mt-4"> <div class="col"> <div class="card"> <div class="card-body"> <div class="table-responsive table-invoice"> <table class="table table-striped" id="dataTable"> <thead> <tr> <th><?php echo e(__('admin.SN')); ?></th> <th><?php echo e(__('admin.Agent')); ?></th> <th><?php echo e(__('admin.Property')); ?></th> <th><?php echo e(__('admin.Price')); ?></th> <th><?php echo e(__('admin.Type')); ?></th> <th><?php echo e(__('admin.Purpose')); ?></th> <th><?php echo e(__('admin.Translations')); ?></th> <th><?php echo e(__('admin.Status')); ?></th> <th><?php echo e(__('admin.Action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $properties; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $property): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(++$index); ?></td> <td><a href="<?php echo e(route('admin.agent-show', $property->user_id)); ?>"><?php echo e($property->user ? $property->user->name : ''); ?></a> </td> <td><a target="_blank" href="<?php echo e(route('property.details', $property->slug)); ?>"><?php echo e($property->title); ?></a> </td> <td><?php echo e($currency); ?><?php echo e($property->price); ?></td> <td><?php echo e($property->propertyType->type); ?></td> <td><?php echo e($property->propertyPurpose->custom_purpose); ?></td> <td> <?php $__empty_1 = true; $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <i class="fa <?php echo e($property->translation($language->code)?->first()?->title ? 'fa-check' : 'fa-edit'); ?>"></i> <a href="<?php echo e(route('admin.property.translation', ['id' => $property->id, 'code' => $language->code, 'type' => 'agent'])); ?>"><?php echo e(strtoupper($language->code)); ?></a> <?php if(!$loop->last): ?> || <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <a href="<?php echo e(route('admin.property.translation', ['id' => $property->id, 'code' => $language->code, 'type' => 'agent'])); ?>"><?php echo e(strtoupper(config('app.locale'))); ?></a> <?php endif; ?> </td> <td> <?php if($property->status == 1): ?> <a href="javascript:;" onclick="changeBlogCategoryStatus(<?php echo e($property->id); ?>)"> <input id="status_toggle" type="checkbox" checked data-toggle="toggle" data-on="<?php echo e(__('admin.Active')); ?>" data-off="<?php echo e(__('admin.Inactive')); ?>" data-onstyle="success" data-offstyle="danger"> </a> <?php else: ?> <a href="javascript:;" onclick="changeBlogCategoryStatus(<?php echo e($property->id); ?>)"> <input id="status_toggle" type="checkbox" data-toggle="toggle" data-on="<?php echo e(__('admin.Active')); ?>" data-off="<?php echo e(__('admin.Inactive')); ?>" data-onstyle="success" data-offstyle="danger"> </a> <?php endif; ?> </td> <td> <a href="<?php echo e(route('admin.property.edit', $property->id)); ?>" class="btn btn-primary btn-sm"><i class="fa fa-edit" aria-hidden="true"></i></a> <a href="javascript:;" data-toggle="modal" data-target="#deleteModal" class="btn btn-danger btn-sm" onclick="deleteData(<?php echo e($property->id); ?>)"><i class="fa fa-trash" aria-hidden="true"></i></a> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </section> </div> <script> function deleteData(id) { $("#deleteForm").attr("action", '<?php echo e(url('admin/property/')); ?>' + "/" + id) } function changeBlogCategoryStatus(id) { var isDemo = "<?php echo e(env('PROJECT_MODE')); ?>" if (isDemo == 0) { toastr.error('This Is Demo Version. You Can Not Change Anything'); return; } $.ajax({ type: "put", data: { _token: '<?php echo e(csrf_token()); ?>' }, url: "<?php echo e(url('/admin/property-status/')); ?>" + "/" + id, success: function(response) { toastr.success(response) }, error: function(err) { console.log(err); } }) } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekhnath/silverray.com.au/resources/views/admin/agent_property.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.09 |
proxy
|
phpinfo
|
Настройка