<?php if (isset($component)) { $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\MasterLayout::class, ['assets' => $assets ?? []]); ?>
<?php $component->withName('master-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
    <div>
        <?php $id = $id ?? null;?>
        <?php if(isset($id)): ?>
            <?php echo Form::model($data, ['route' => ['country.update', $id], 'method' => 'patch', 'id' => 'country_form']); ?>

        <?php else: ?>
            <?php echo Form::open(['route' => ['country.store'], 'method' => 'post', 'id' => 'country_form']); ?>

        <?php endif; ?>
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title"><?php echo e($pageTitle); ?></h4>
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="new-user-info">
                            <div class="row">
                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('name', __('message.country').' <span class="text-danger">*</span>',['class' => 'form-control-label'],false)); ?>

                                    <?php echo e(Form::select('name', array_combine(array_column($country, 'countryNameEn'), array_map(function($country) {
                                        return $country['flag'] . ' ' . $country['countryNameEn'];}, $country)),     old('name'), ['class' => 'form-control select2js', 'required'])); ?>

                                </div>

                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('distance_type',__('message.distance_type'),['class'=>'form-control-label'])); ?>

                                    <?php echo e(Form::select('distance_type',[ 'km' => __('message.km'), 'miles' => __('message.miles') ], old('distance_type'), [ 'class' =>'form-control select2js','required'])); ?>

                                </div>

                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('weight_type',__('message.weight_type'),['class'=>'form-control-label'])); ?>

                                    <?php echo e(Form::select('weight_type',[ 'kg' => __('message.kg'), 'pound' => __('message.pound') ], old('weight_type'), [ 'class' =>'form-control select2js','required'])); ?>

                                </div>

                                <div class="form-group col-md-6">
                                    <?php echo e(Form::label('status',__('message.status'),['class'=>'form-control-label'])); ?>

                                    <?php echo e(Form::select('status',[ '1' => __('message.enable'), '0' => __('message.disable') ], old('status'), [ 'class' =>'form-control select2js','required'])); ?>

                                </div>
                            </div>
                            <hr>
                            <?php echo e(Form::submit( isset($id) ? __('message.update') : __('message.save'), ['class'=>'btn btn-md btn-primary float-right'])); ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php echo Form::close(); ?>

    </div>
    <?php $__env->startSection('bottom_script'); ?>
    
<?php $__env->stopSection(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23)): ?>
<?php $component = $__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23; ?>
<?php unset($__componentOriginalc6e081c8432fe1dd6b4e43af4871c93447ee9b23); ?>
<?php endif; ?>
<?php /**PATH /home/atharvatek/mxunzo.atharvatek.com/resources/views/country/form.blade.php ENDPATH**/ ?>