<?php $__env->startSection('head'); ?>
<?php echo $__env->make('layouts.main.headersection',[
'title'=> __('Upload module'),
'buttons'=>[
	[
		'name'=>__('Back'),
		'url'=>route('admin.modules.index'),
	]
 ]
], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

	<div class="row justify-content-center">
		<div class="col-lg-8 card-wrapper">	
			<?php if(Session::has('error')): ?>
			<div class="alert bg-gradient-danger text-white alert-dismissible fade show success-alert" role="alert">
			<span class="alert-text"><?php echo e(Session::get('error')); ?></span>
			<button type="button" class="close" data-dismiss="alert" aria-label="Close">
				<span aria-hidden="true">×</span>
			</button>
		   </div>
		   <?php endif; ?>

		   <?php if(Session::has('success')): ?>
			<div class="alert bg-gradient-success text-white alert-dismissible fade show success-alert" role="alert">
			<span class="alert-text"><?php echo e(Session::get('success')); ?></span>
			<button type="button" class="close" data-dismiss="alert" aria-label="Close">
				<span aria-hidden="true">×</span>
			</button>
		   </div>
		   <?php endif; ?>

		   <?php if(!Session::has('update-data')): ?>
			<!-- Alerts -->
			<div class="card">
				<div class="card-header">
					<div class="row w-100">
                    <div class="col-6">
						<h3><?php echo e(__('Upload New Module')); ?></h3>
                    </div>
					</div>
				</div>
				<div class="card-body">
					<form action="<?php echo e(route('admin.modules.store')); ?>" method="post" class="ajaxform_instant_reload" enctype="multipart/form-data">
                    <div class="form-group">
                        <label for=""><?php echo e(__('Upload Module')); ?></label>
                        <input type="file" class="form-control" required accept=".zip" name="module">
                    </div>
                    <div class="form-group">
                        <label for=""><?php echo e(__('Purchase Key')); ?></label>
                        <input type="text" class="form-control" required name="purchase_key">
                    </div>
					<div class="from-group  mt-3">						
						<button class="btn btn-neutral submit-button" type="submit"><?php echo e(__('Upload')); ?></button>
					</div>
                    </form>
				</div>
			</div>
			<?php endif; ?>
		</div>		
	</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Volumes/my-works/laravel/wasender-modules/resources/views/admin/modules/create.blade.php ENDPATH**/ ?>