   
<?php $__env->startSection('main-section'); ?>
<div class="content container-fluid">
	<div class="row">
		<div class="col-sm-12">
			<div class="card">
				<div class="card-header card-buttons">
					<h5 class="card-title">Add Party</h5>
				</div>
				<div class="card-body card-buttons">
					<div class="row">
						<div class="col-sm-12">
							<?php if(Session::has('success')): ?>
							<div class="alert alert-success"><?php echo e(Session::get('success')); ?></div>
							<?php endif; ?> <?php if(Session::has('fail')): ?> 
							<div class="alert alert-danger"><?php echo e(Session::get('fail')); ?></div>
							<?php endif; ?>
						</div>
						<div class="col-sm">
							<form action="<?php echo e(route('party.partyCreate')); ?>" method="post">
								<?php echo csrf_field(); ?>
								<div class="form-row row">
									<div class="col-md-4 mb-3">
										<label for="name"> Name <span class="text-danger">*</span></label>
										<input type="text" class="form-control" name="name" id="name" value="<?php echo e(old('name')); ?>" placeholder="Name">
										<span class="text-danger"><?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="email"> Email</label>
										<input type="text" class="form-control" name="email" id="email" value="<?php echo e(old('email')); ?>" placeholder="Email">
										<span class="text-danger"><?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="phone"> Phone</label>
										<input type="text" class="form-control" name="phone" id="phone" value="<?php echo e(old('phone')); ?>" placeholder="1234567890">
										<span class="text-danger"><?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="address"> Address</label>
										<input type="text" class="form-control" name="address" id="address" value="<?php echo e(old('address')); ?>" placeholder="Address">
										<span class="text-danger"><?php $__errorArgs = ['address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="country_id">Country</label>
										<select name="country_id" class="form-select" id="country_id">
											<option value="">Select Country</option>
											<?php $__currentLoopData = $country; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
											<option value="<?php echo e($c->area_id); ?>"><?php echo e($c->name); ?></option>
											<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
										</select>
										<span class="text-danger"><?php $__errorArgs = ['country_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="email">State</label>
										<div id="show_state">
											<input type="text" class="form-control" name="" id="state_id" placeholder="State">
										</div>
										<span class="text-danger"><?php $__errorArgs = ['state_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="email">City</label>
										<div id="show_city">
											<input type="text" class="form-control" name="" id="city_id" placeholder="City">
										</div>
										<span class="text-danger"><?php $__errorArgs = ['city_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="gst"> GST</label>
										<input type="text" class="form-control" name="gst" id="gst" value="<?php echo e(old('gst')); ?>" placeholder="GST No">
										<span class="text-danger"><?php $__errorArgs = ['gst'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="pancard"> Pancard</label>
										<input type="text" class="form-control" name="pancard" id="pancard" value="<?php echo e(old('pancard')); ?>" placeholder="Pancard">
										<span class="text-danger"><?php $__errorArgs = ['pancard'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="credit_limit"> Credit Limit</label>
										<input type="text" class="form-control" name="credit_limit" id="credit_limit" value="<?php echo e(old('credit_limit')); ?>">
										<span class="text-danger"><?php $__errorArgs = ['credit_limit'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
									<div class="col-md-4 mb-3">
										<label for="party_type"> Party Type</label>
										<select name="party_type" class="form-select">
											<option value="">Select Type</option>
											<option value="0">Customer</option>
											<option value="1">Supplier</option>
										</select>
										<span class="text-danger"><?php $__errorArgs = ['party_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> </span>
									</div>
								</div>
								<button class="btn btn-primary" type="submit">Submit</button>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('dashboardLayout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\accounting\accounting\resources\views/party/add.blade.php ENDPATH**/ ?>