File: /www/wwwroot/erp.nhatnamsst.com/storage/framework/views/ddc8babf74de29a11bc765de5eb05f4e.php
<?php $__env->startSection('title', $pageTitle ?? __('Nhập mới Công nợ')); ?>
<?php $__env->startSection('content'); ?>
<div class="page-body">
<div class="container-xl">
<?php if (isset($component)) { $__componentOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b = $attributes; } ?>
<?php $component = Domains\Core\View\Components\Form::resolve(['action' => route('cms.debt.store'),'type' => 'post','validate' => true] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('core-form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Domains\Core\View\Components\Form::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'block-double-click','enctype' => 'multipart/form-data']); ?>
<div class="row justify-content-center">
<?php echo $__env->make('cms.debts.forms.create-left', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</div>
<!-- Action buttons at bottom -->
<div class="mt-4 d-flex justify-content-between btn-action-footer">
<div>
<button type="button" class="btn btn-secondary" onclick="history.back()">
<?php echo app('translator')->get('Đóng'); ?> (ESC)
</button>
</div>
<div class="d-flex gap-2">
<button type="submit" class="btn btn-primary" title="<?php echo app('translator')->get('Lưu'); ?>" name="submitter" value="save"><?php echo app('translator')->get('Lưu'); ?> (Ctrl+S)</button>
<button type="submit" class="btn" name="submitter" value="saveAndExit">
<?php echo app('translator')->get('Lưu & thoát'); ?>
</button>
</div>
</div>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b)): ?>
<?php $attributes = $__attributesOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b; ?>
<?php unset($__attributesOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b)): ?>
<?php $component = $__componentOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b; ?>
<?php unset($__componentOriginal4b3b1a2d8f6e25b6366e4e4bbf4f911b); ?>
<?php endif; ?>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
<script>
$(document).ready(function() {
$(document).on('keydown', function(e) {
if ((e.ctrlKey || e.metaKey) && e.key === 's') {
e.preventDefault();
var $form = $('form.block-double-click');
if ($form.length > 0) {
$form.find('button[name="submitter"][value="save"]').click();
}
}
if (e.key === 'Escape') {
window.location.href = '<?php echo e(route('cms.debt.index')); ?>';
}
});
});
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('cms.layouts.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /www/wwwroot/erp.nhatnamsst.com/resources/views/cms/debts/create.blade.php ENDPATH**/ ?>