<?php $__env->startSection('title', $shipping_method->exists ? 'Editando '.$shipping_method->title : 'Crear nuevo método de envío'); ?>

<?php $__env->startSection('content'); ?>
    <!-- Page Header -->
    <div class="page-header">
        <div class="row align-items-end">
            <div class="col-sm mb-2 mb-sm-0">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb breadcrumb-no-gutter">
                        <li class="breadcrumb-item"><a class="breadcrumb-link" href="javascript:;">eCommerce</a></li>
                        <li class="breadcrumb-item"><a class="breadcrumb-link" href="<?php echo e(route('backend.shipping_methods.index')); ?>">Métodos de envío</a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo $__env->yieldContent('title'); ?></li>
                    </ol>
                </nav>

                <h1 class="page-header-title"><?php echo $__env->yieldContent('title'); ?></h1>
            </div>
        </div>
        <!-- End Row -->
    </div>
    <!-- End Page Header -->

    <!-- Step Form -->
    <?php echo Form::model($shipping_method, [
        'method' => $shipping_method->exists ? 'put' : 'post',
        'route' => $shipping_method->exists ? ['backend.shipping_methods.update', $shipping_method->id] : 'backend.shipping_methods.store',
        'class' => 'js-step-form py-md-5',
        'files' => true
    ]); ?>

    <div class="row justify-content-lg-center">
        <div class="col-lg-8">
            <div class="card card-lg active">
                <!-- Body -->
                <div class="card-body">
                    <!-- Form Group -->
                    <div class="row form-group">
                        <label for="titleLabel" class="col-sm-3 col-form-label input-label">Nombre</label>

                        <div class="col-sm-9">
                            <?php echo Form::text('title', null, ['class' => 'form-control', 'id' => 'titleLabel']); ?>

                        </div>
                    </div>
                    <!-- End Form Group -->

                    <!-- Form Group -->
                    <div class="row form-group">
                        <label for="excerptLabel" class="col-sm-3 col-form-label input-label">Descripción</label>

                        <div class="col-sm-9">
                            <?php echo Form::textarea('excerpt', null, ['class' => 'form-control', 'id' => 'excerptLabel', 'rows' => 3]); ?>

                        </div>
                    </div>
                    <!-- End Form Group -->

                    <!-- Form Group -->
                    <div class="row form-group">
                        <label for="priceLabel" class="col-sm-3 col-form-label input-label">Costo</label>

                        <div class="col-sm-9">
                            <?php echo Form::text('price', null, ['class' => 'form-control number', 'id' => 'priceLabel']); ?>

                        </div>
                    </div>
                    <!-- End Form Group -->

                    <hr class="my-4">
                    <div class="form-group mb-0">
                        <!-- Toggle Switch -->
                        <label class="row toggle-switch" for="activeSwitch1">
                          <span class="col-8 col-sm-9 toggle-switch-content ml-0">
                            <span class="text-dark">Activo</span>
                          </span>
                            <span class="col-4 col-sm-3">
                            <?php echo Form::hidden('active', 0); ?>

                                <?php echo Form::checkbox('active', 1, $shipping_method->exists ? null : true, ['class' => 'toggle-switch-input', 'id' => 'activeSwitch1']); ?>

                                <span class="toggle-switch-label ml-auto">
                              <span class="toggle-switch-indicator"></span>
                            </span>
                          </span>
                        </label>
                        <!-- End Toggle Switch -->
                    </div>
                </div>
                <!-- End Body -->

                <!-- Footer -->
                <div class="card-footer d-sm-flex align-items-sm-center">
                    <div class="ml-auto">
                        <button type="submit" class="btn btn-primary"><?php echo e($shipping_method->exists ? 'Actualizar' : 'Crear'); ?> método de envío</button>
                    </div>
                </div>
                <!-- End Footer -->
            </div>
        </div>
    </div>
    <!-- End Row -->
    <?php echo Form::close(); ?>

    <!-- End Step Form -->
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bgreen/test.bgreen.com.py/resources/views/backend/shipping_methods/form.blade.php ENDPATH**/ ?>