Files
rohini-web/storage2/framework/views/2acec822b8973d811dcfcad2d474ab8d.php
2025-12-28 12:16:05 +05:45

88 lines
5.0 KiB
PHP

<?php echo e(html()->form('POST', route('counter.store'))->class('needs-validation')->attributes(['novalidate'])->open()); ?>
<?php if(isset($counter)): ?>
<?php echo e(html()->hidden('id', $counter->id)); ?>
<?php endif; ?>
<div class="card-body">
<div class="row">
<div class="col-sm-12">
<div class="mb-3">
<?php echo e(html()->label('Title')->for('title')); ?>
<?php echo e(html()->span('*')->class('text-danger')); ?>
<?php echo e(html()->text('title')->value($counter->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required()); ?>
<?php echo e(html()->div('Please enter a title.')->class('invalid-feedback')); ?>
</div>
<div class="mb-3">
<?php echo e(html()->label('Counter Value')->for('counter')); ?>
<?php echo e(html()->text('counter')->value($counter->counter ?? old('counter'))->class('form-control')->placeholder('Enter Counter value')); ?>
</div>
<div class="mb-3">
<?php echo e(html()->label('Icon')->for('icon')); ?>
<?php echo e(html()->text('icon')->value($counter->icon ?? old('icon'))->class('form-control')->placeholder('Enter Icon class')); ?>
</div>
<div class="mb-3">
<?php echo e(html()->label('Image')->class('form-label')->for('image')); ?>
<?php if (isset($component)) { $__componentOriginal4a95833b519aeb799c35637497d32ce2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4a95833b519aeb799c35637497d32ce2 = $attributes; } ?>
<?php $component = App\View\Components\ImageInput::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('image-input'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\ImageInput::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['editable' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable),'id' => 'image','name' => 'image','data' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($editable ? $counter->getRawOriginal('image') : null),'multiple' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(false)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4a95833b519aeb799c35637497d32ce2)): ?>
<?php $attributes = $__attributesOriginal4a95833b519aeb799c35637497d32ce2; ?>
<?php unset($__attributesOriginal4a95833b519aeb799c35637497d32ce2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4a95833b519aeb799c35637497d32ce2)): ?>
<?php $component = $__componentOriginal4a95833b519aeb799c35637497d32ce2; ?>
<?php unset($__componentOriginal4a95833b519aeb799c35637497d32ce2); ?>
<?php endif; ?>
</div>
</div>
<?php if (isset($component)) { $__componentOriginal4472fe0a558b38a919fed94c8472a9fd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4472fe0a558b38a919fed94c8472a9fd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form-buttons','data' => ['href' => route('counter.index'),'label' => isset($counter) ? 'Update' : 'Create']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form-buttons'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('counter.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($counter) ? 'Update' : 'Create')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4472fe0a558b38a919fed94c8472a9fd)): ?>
<?php $attributes = $__attributesOriginal4472fe0a558b38a919fed94c8472a9fd; ?>
<?php unset($__attributesOriginal4472fe0a558b38a919fed94c8472a9fd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4472fe0a558b38a919fed94c8472a9fd)): ?>
<?php $component = $__componentOriginal4472fe0a558b38a919fed94c8472a9fd; ?>
<?php unset($__componentOriginal4472fe0a558b38a919fed94c8472a9fd); ?>
<?php endif; ?>
</div>
</div>
<?php echo e(html()->form()->close()); ?>
<?php /**PATH D:\installed\xampp\htdocs\Consultancy-CCMS\Modules/CCMS\resources/views/counter/add-counter-form.blade.php ENDPATH**/ ?>