<?php ($method = $shippingMethod ?? null); ?>
<div class="grid gap-6 md:grid-cols-2">
    <?php if (isset($component)) { $__componentOriginal530746098e8865a2469fd5685420112b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal530746098e8865a2469fd5685420112b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.text-input','data' => ['name' => 'name','label' => 'Name','value' => $method?->name,'required' => true,'placeholder' => 'Standard Delivery']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.text-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(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'name','label' => 'Name','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($method?->name),'required' => true,'placeholder' => 'Standard Delivery']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal530746098e8865a2469fd5685420112b)): ?>
<?php $attributes = $__attributesOriginal530746098e8865a2469fd5685420112b; ?>
<?php unset($__attributesOriginal530746098e8865a2469fd5685420112b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal530746098e8865a2469fd5685420112b)): ?>
<?php $component = $__componentOriginal530746098e8865a2469fd5685420112b; ?>
<?php unset($__componentOriginal530746098e8865a2469fd5685420112b); ?>
<?php endif; ?>

    <?php if (isset($component)) { $__componentOriginal530746098e8865a2469fd5685420112b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal530746098e8865a2469fd5685420112b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.text-input','data' => ['name' => 'code','label' => 'Code','value' => $method?->code,'required' => true,'placeholder' => 'delivery','helpText' => 'Stable API identifier using letters, numbers, dashes, or underscores.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.text-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(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'code','label' => 'Code','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($method?->code),'required' => true,'placeholder' => 'delivery','help-text' => 'Stable API identifier using letters, numbers, dashes, or underscores.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal530746098e8865a2469fd5685420112b)): ?>
<?php $attributes = $__attributesOriginal530746098e8865a2469fd5685420112b; ?>
<?php unset($__attributesOriginal530746098e8865a2469fd5685420112b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal530746098e8865a2469fd5685420112b)): ?>
<?php $component = $__componentOriginal530746098e8865a2469fd5685420112b; ?>
<?php unset($__componentOriginal530746098e8865a2469fd5685420112b); ?>
<?php endif; ?>

    <?php if (isset($component)) { $__componentOriginale7b240ac873e22945c281c841a0f88ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale7b240ac873e22945c281c841a0f88ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.number-input','data' => ['name' => 'fixed_fee','label' => 'Fixed Fee ($)','step' => '0.01','min' => '0','required' => true,'value' => $method?->fixed_fee ?? '0.00','placeholder' => '2.00']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.number-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(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'fixed_fee','label' => 'Fixed Fee ($)','step' => '0.01','min' => '0','required' => true,'value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($method?->fixed_fee ?? '0.00'),'placeholder' => '2.00']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale7b240ac873e22945c281c841a0f88ab)): ?>
<?php $attributes = $__attributesOriginale7b240ac873e22945c281c841a0f88ab; ?>
<?php unset($__attributesOriginale7b240ac873e22945c281c841a0f88ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale7b240ac873e22945c281c841a0f88ab)): ?>
<?php $component = $__componentOriginale7b240ac873e22945c281c841a0f88ab; ?>
<?php unset($__componentOriginale7b240ac873e22945c281c841a0f88ab); ?>
<?php endif; ?>

    <?php if (isset($component)) { $__componentOriginale7b240ac873e22945c281c841a0f88ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale7b240ac873e22945c281c841a0f88ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.number-input','data' => ['name' => 'sort_order','label' => 'Display order','value' => $method?->sort_order ?? 0,'min' => '0']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.number-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(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'sort_order','label' => 'Display order','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($method?->sort_order ?? 0),'min' => '0']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale7b240ac873e22945c281c841a0f88ab)): ?>
<?php $attributes = $__attributesOriginale7b240ac873e22945c281c841a0f88ab; ?>
<?php unset($__attributesOriginale7b240ac873e22945c281c841a0f88ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale7b240ac873e22945c281c841a0f88ab)): ?>
<?php $component = $__componentOriginale7b240ac873e22945c281c841a0f88ab; ?>
<?php unset($__componentOriginale7b240ac873e22945c281c841a0f88ab); ?>
<?php endif; ?>

    <?php if (isset($component)) { $__componentOriginal694712473b787cd740db4e46be9da3f9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal694712473b787cd740db4e46be9da3f9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.textarea','data' => ['name' => 'description','label' => 'Description','value' => $method?->description,'rows' => '3','class' => 'md:col-span-2','placeholder' => 'Deliver right to customer doorstep.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.textarea'); ?>
<?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(['name' => 'description','label' => 'Description','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($method?->description),'rows' => '3','class' => 'md:col-span-2','placeholder' => 'Deliver right to customer doorstep.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal694712473b787cd740db4e46be9da3f9)): ?>
<?php $attributes = $__attributesOriginal694712473b787cd740db4e46be9da3f9; ?>
<?php unset($__attributesOriginal694712473b787cd740db4e46be9da3f9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal694712473b787cd740db4e46be9da3f9)): ?>
<?php $component = $__componentOriginal694712473b787cd740db4e46be9da3f9; ?>
<?php unset($__componentOriginal694712473b787cd740db4e46be9da3f9); ?>
<?php endif; ?>

    <div class="md:col-span-2">
        <?php if (isset($component)) { $__componentOriginalfe26a99f60f8bc4594bf63469705f3a7 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfe26a99f60f8bc4594bf63469705f3a7 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.toggle-switch','data' => ['name' => 'is_active','label' => 'Active','checked' => $method ? $method->is_active : true,'helpText' => 'Show this shipping method in checkout options and API.']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.toggle-switch'); ?>
<?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(['name' => 'is_active','label' => 'Active','checked' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($method ? $method->is_active : true),'help-text' => 'Show this shipping method in checkout options and API.']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfe26a99f60f8bc4594bf63469705f3a7)): ?>
<?php $attributes = $__attributesOriginalfe26a99f60f8bc4594bf63469705f3a7; ?>
<?php unset($__attributesOriginalfe26a99f60f8bc4594bf63469705f3a7); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfe26a99f60f8bc4594bf63469705f3a7)): ?>
<?php $component = $__componentOriginalfe26a99f60f8bc4594bf63469705f3a7; ?>
<?php unset($__componentOriginalfe26a99f60f8bc4594bf63469705f3a7); ?>
<?php endif; ?>
    </div>
</div>

<?php if($errors->any()): ?>
    <div
        class="mt-6 rounded-lg border border-red-200 dark:border-red-800/30 bg-red-50 dark:bg-red-950/20 p-4 text-sm text-red-700 dark:text-red-400">
        <ul class="list-disc space-y-1 pl-5">
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>

<div class="mt-8 flex justify-end gap-3 border-t border-gray-200 dark:border-gray-800 pt-6">
    <a href="<?php echo e(route('admin.shipping-methods.index')); ?>" class="btn-danger">
        <i class="fas fa-times mr-2"></i>Cancel
    </a>
    <button class="btn-primary" type="submit">
        <i class="fas fa-plus"></i><?php echo e($method ? 'Update Shipping Method' : 'Create Shipping Method'); ?>

    </button>
</div><?php /**PATH /Users/mac/Documents/e-com/resources/views/admin/shipping-methods/_form.blade.php ENDPATH**/ ?>