| Path : /var/www/html/phkaynews-v2/storage/framework/views/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //var/www/html/phkaynews-v2/storage/framework/views/d0308ba9a084cde7c43066b153fc22688f7028b2.php |
<div wire:ignore x-data="{ id: $wire.modal_id}" class="d-inline-block">
<?php if(empty($category)): ?>
<button type="button" class="btn btn-success btn-rounded waves-effect waves-light mb-2 mr-2" data-toggle="modal"
x-bind:data-target="'#'+id">
<i class="mdi mdi-plus mr-1" wire:loading.class="d-none" wire:target="formOpen"></i>
<i class="bx bx-loader bx-spin" wire:loading wire:target="formOpen"></i>
Add New
</button>
<?php else: ?>
<a href="#" class="text-primary" data-toggle="modal" x-bind:data-target="'#'+id">
<i class="mdi mdi-pencil font-size-18"></i>
</a>
<?php endif; ?>
<div x-bind:id="id" class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="phkayCategory" aria-hidden="true">
<div class="modal-dialog">
<form wire:submit.prevent="submit" class="modal-content custom-validation" novalidate>
<div class="modal-header">
<h5 class="modal-title mt-0" id="phkayCategory">Create Category</h5>
<button wire:click="closeModal" type="button" class="close" data-dismiss="modal" aria-label="Close">
<i class="mdi mdi-close font-size-18"></i>
</button>
</div>
<div class="modal-body text-left">
<div class="form-group row mb-4">
<label for="name" class="col-sm-3 col-form-label">Category<sup
class="text-danger">*</sup></label>
<div class="col-sm-9">
<input type="text" wire:model.defer="category.name"
class="form-control <?php $__errorArgs = ['category.name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> parsley-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="name"
placeholder="Enter category" required>
<?php $__errorArgs = ['category.name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<ul class="parsley-errors-list filled" id="parsley-id-5" aria-hidden="false">
<li class="parsley-required"><?php echo e($message); ?></li>
</ul>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="form-group row mb-4">
<label for="slug" class="col-sm-3 col-form-label">Slug<sup
class="text-danger">*</sup></label>
<div class="col-sm-9">
<input type="text" wire:model.defer="category.slug"
class="form-control <?php $__errorArgs = ['category.slug'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> parsley-error <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" id="slug"
placeholder="Enter slug " required>
<?php $__errorArgs = ['category.slug'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<ul class="parsley-errors-list filled" id="parsley-id-5" aria-hidden="false">
<li class="parsley-required"><?php echo e($message); ?>dafgsdf</li>
</ul>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
</div>
<div class="modal-footer p-0">
<button type="button" wire:click="closeModal" class="btn rounded-pill btn-secondary waves-effect" data-dismiss="modal">Close</button>
<button type="submit" class="btn rounded-pill btn-success waves-effect waves-light">
<i class="bx bx-check" wire:loading.class="d-none" wire:target="submit"></i>
<i class="bx bx-loader bx-spin" wire:loading wire:target="submit"></i>
<?php echo e(isset($category->id)?'Update':'Save'); ?>
</button>
</div>
</form>
</div>
</div>
</div>
<?php /**PATH /var/www/html/phkaynews-v2/resources/views/livewire/admin/partcials/category-form.blade.php ENDPATH**/ ?>