<?php $__env->startSection('title',trans('front.Add')); ?>

<?php $__env->startSection('content'); ?>
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			<?php echo app('translator')->getFromJson('front.Add'); ?>
			<small>
				<?php
					$title = '';
                    if($type=='client'){
                        $title = trans('front.client');
                    }elseif($type=='supplier'){
                        $title = trans('front.supplier');
                    }elseif($type=='sale'){
                        $title = 'مندوب مبيعات جديد';
                    }else{
                    	$title = 'مسوق';
                    }
				?>
				<?php echo e($title); ?>

			</small>
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
		</h1>
	</section>
	<!-- Main content -->
	<form id="personForm" action="<?php echo e(route('persons.store')); ?>" method="post">
		<?php echo e(csrf_field()); ?>

		<input type="hidden" value="<?php echo e($type); ?>" name="type">
		<?php echo $__env->make('persons._form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	</form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>