| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/billing/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<!--begin::Wrapper-->
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<!--begin::Header-->
<div id="kt_header" class="header" data-kt-sticky="true" data-kt-sticky-name="header" data-kt-sticky-offset="{default: '200px', lg: '300px'}">
<!--begin::Container-->
<div class="container-xxl d-flex align-items-center justify-content-between" id="kt_header_container">
<!--begin::Page title-->
<div class="page-title d-flex flex-column align-items-start justify-content-center flex-wrap me-lg-2 pb-5 pb-lg-0" data-kt-swapper="true" data-kt-swapper-mode="prepend" data-kt-swapper-parent="{default: '#kt_content_container', lg: '#kt_header_container'}">
<!--begin::Heading-->
<h1 class="text-dark fw-bold my-0 fs-2">Edit Invoice</h1>
<!--end::Heading-->
<!--begin::Breadcrumb-->
<ul class="breadcrumb breadcrumb-line text-muted fw-bold fs-base my-1">
<li class="breadcrumb-item text-muted">
<a href="<?php echo e(route('home')); ?>" class="text-muted">Dashboard</a>
</li>
<li class="breadcrumb-item text-dark">Edit Invoice</li>
</ul>
<!--end::Breadcrumb-->
</div>
<!--end::Page title=-->
<!--begin::Wrapper-->
<div class="d-flex d-lg-none align-items-center ms-n2 me-2">
<!--begin::Aside mobile toggle-->
<div class="btn btn-icon btn-active-icon-primary" id="kt_aside_toggle">
<!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
<span class="svg-icon svg-icon-2x">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="black" />
<path opacity="0.3" d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z" fill="black" />
</svg>
</span>
<!--end::Svg Icon-->
</div>
<!--end::Aside mobile toggle-->
<!--begin::Logo-->
<a href="<?php echo e(route('home')); ?>" class="d-flex align-items-center">
<img alt="Logo" src="assets/media/logos/logo-default.svg" class="h-40px" />
</a>
<!--end::Logo-->
</div>
<!--end::Wrapper-->
<!--begin::Toolbar wrapper-->
<div class="d-flex flex-shrink-0">
</div>
<!--end::Toolbar wrapper-->
</div>
<!--end::Container-->
</div>
<!--end::Header-->
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Container-->
<div class="container-xxl" id="kt_content_container">
<!--begin::details View-->
<div class="card mb-5 mb-xl-10" id="kt_profile_details_view">
<!--begin::Card header-->
<div class="card-header cursor-pointer">
<!--begin::Card title-->
<div class="card-title m-0">
<h3 class="fw-bolder m-0">Edit Invoice</h3>
</div>
<!--end::Card title-->
</div>
<!--begin::Card header-->
<!--begin::Card body-->
<div class="card-body p-9">
<?php if(Session::has('errors')): ?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<h4 class="alert-heading">Error!</h4>
<p>
<ul>
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li><?php echo e($error); ?></li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
</p>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php endif; ?>
<?php if($msg = Session::get('success')): ?>
<!--begin::Alert-->
<div class="alert alert-dismissible bg-success d-flex flex-column flex-sm-row p-5 mb-10">
<!--begin::Icon-->
<span class="svg-icon svg-icon-2hx svg-icon-light me-4 mb-5 mb-sm-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" d="M12 22C13.6569 22 15 20.6569 15 19C15 17.3431 13.6569 16 12 16C10.3431 16 9 17.3431 9 19C9 20.6569 10.3431 22 12 22Z" fill="black"></path>
<path d="M19 15V18C19 18.6 18.6 19 18 19H6C5.4 19 5 18.6 5 18V15C6.1 15 7 14.1 7 13V10C7 7.6 8.7 5.6 11 5.1V3C11 2.4 11.4 2 12 2C12.6 2 13 2.4 13 3V5.1C15.3 5.6 17 7.6 17 10V13C17 14.1 17.9 15 19 15ZM11 10C11 9.4 11.4 9 12 9C12.6 9 13 8.6 13 8C13 7.4 12.6 7 12 7C10.3 7 9 8.3 9 10C9 10.6 9.4 11 10 11C10.6 11 11 10.6 11 10Z" fill="black"></path>
</svg>
</span>
<!--end::Icon-->
<!--begin::Wrapper-->
<div class="d-flex flex-column text-light pe-0 pe-sm-10">
<!--begin::Title-->
<h4 class=" mb-2 text-white">Alert</h4>
<!--end::Title-->
<span class=" text-white"><?php echo e($msg); ?></span>
</div>
<!--end::Wrapper-->
<!--begin::Close-->
<button type="button" class="position-absolute position-sm-relative m-2 m-sm-0 top-0 end-0 btn btn-icon ms-sm-auto" data-bs-dismiss="alert">
<span class="svg-icon svg-icon-2x svg-icon-light">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="black"></rect>
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="black"></rect>
</svg>
</span>
</button>
<!--end::Close-->
</div>
<!--end::Alert-->
<?php elseif($msg = Session::get('fail')): ?>
<!--begin::Alert-->
<div class="alert alert-dismissible bg-danger d-flex flex-column flex-sm-row p-5 mb-10">
<!--begin::Icon-->
<span class="svg-icon svg-icon-2hx svg-icon-light me-4 mb-5 mb-sm-0">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path opacity="0.3" d="M12 22C13.6569 22 15 20.6569 15 19C15 17.3431 13.6569 16 12 16C10.3431 16 9 17.3431 9 19C9 20.6569 10.3431 22 12 22Z" fill="black"></path>
<path d="M19 15V18C19 18.6 18.6 19 18 19H6C5.4 19 5 18.6 5 18V15C6.1 15 7 14.1 7 13V10C7 7.6 8.7 5.6 11 5.1V3C11 2.4 11.4 2 12 2C12.6 2 13 2.4 13 3V5.1C15.3 5.6 17 7.6 17 10V13C17 14.1 17.9 15 19 15ZM11 10C11 9.4 11.4 9 12 9C12.6 9 13 8.6 13 8C13 7.4 12.6 7 12 7C10.3 7 9 8.3 9 10C9 10.6 9.4 11 10 11C10.6 11 11 10.6 11 10Z" fill="black"></path>
</svg>
</span>
<!--end::Icon-->
<!--begin::Wrapper-->
<div class="d-flex flex-column text-light pe-0 pe-sm-10">
<!--begin::Title-->
<h4 class=" mb-2 text-white">Alert</h4>
<!--end::Title-->
<span class=" text-white"><?php echo e($msg); ?></span>
</div>
<!--end::Wrapper-->
<!--begin::Close-->
<button type="button" class="position-absolute position-sm-relative m-2 m-sm-0 top-0 end-0 btn btn-icon ms-sm-auto" data-bs-dismiss="alert">
<span class="svg-icon svg-icon-2x svg-icon-light">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="black"></rect>
<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="black"></rect>
</svg>
</span>
</button>
<!--end::Close-->
</div>
<!--end::Alert-->
<?php endif; ?>
<form method="POST" class="form" enctype="multipart/form-data" action="<?php echo e(route('invoice.update',$invoice->id)); ?>">
<?php echo csrf_field(); ?>
<div class="fv-row mb-10 mb-3">
<label for="inv_id" class="required fw-bold fs-6 mb-2"><?php echo e(__('Invoice Id')); ?></label>
<div class="col-md-12">
<input id="inv_id" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['inv_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="inv_id" value="<?php echo e($invoice->inv_id); ?>" required disabled autofocus>
<?php $__errorArgs = ['inv_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="customer" class="required fw-bold fs-6 mb-2"><?php echo e(__('Customer')); ?></label>
<a href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#add_customer">Add New Customer</a>
<div class="col-md-12">
<select class="form-select form-control-solid mb-3 mb-lg-0 mySelect2 <?php $__errorArgs = ['customer'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="customer" id="customer" aria-label="Select Customer">
<option>Select Customer </option>
<?php $__empty_1 = true; $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<option value="<?php echo e($c->id); ?>" <?php echo e(($invoice->customer_id==$c->id)?'selected':''); ?>><?php echo e($c->firstname.' '.$c->lastname); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<?php endif; ?>
</select>
<?php $__errorArgs = ['customer'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<input type="hidden" name="cnt" id="cnt" value="1">
<label for="customer" class="fw-bold fs-6 mb-2"><?php echo e(__('Line Items')); ?> <a class="btn btn-success" style="padding: 3px 8px" id="addmoreitem">Add more Line</a></label>
<div class="col-md-12" style="border: 1px solid #CCC; padding: 12px; border-radius: 9px;">
<table class="table">
<thead><tr><th><strong>Item</strong></th><th><strong>Qty</strong></th><th><strong>Price</strong></th><th><strong>Action</strong></th></tr></thead>
<tbody id="lineitem" data-line=1>
<?php $subtotal = 0;?>
<?php $__empty_1 = true; $__currentLoopData = $invoice->lineItem; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
<?php $cal = $key+1;
$subtotal =$item->price+$subtotal; ?>
<tr>
<td>
<input type="hidden" name="line[id][]" value="<?php echo e($item->id); ?>"/>
<select onchange="calculateme(<?php echo e($cal); ?>)" name="line[product][]" id="line_product_1" class="form-select mySelect2">
<option value="">Select Product</option>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($p->id); ?>" <?php echo e(($item->product_id==$p->id)?'selected':''); ?>><?php echo e($p->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</td>
<td><input type="number" name="line[qty][]" id="line_qty_1" onblur="changeqty(<?php echo e($cal); ?>)" class="form-control" min="1" max="<?php echo e($item->product->qty); ?>" value="<?php echo e($item->qty); ?>"></td>
<td><input type="text" name="line[price][]" id="line_price_1" class="form-control" value="<?php echo e($item->price); ?>"></td>
</td>
<td> <?php if($key>0): ?><a href="javascript:void(0)" class="deleteLine" ><i class="fas fa-trash text-danger fs-2"></i>
</a><?php endif; ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
<tr>
<td>
<select onchange="calculateme(1)" name="line[product][]" id="line_product_1" class="form-select mySelect2">
<option value="">Select Product</option>
<?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($p->id); ?>" <?php echo e((old('product')==$p->id)?'selected':''); ?>><?php echo e($p->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</td>
<td><input type="number" name="line[qty][]" id="line_qty_1" min="1" onblur="changeqty(1)" class="form-control"></td>
<td><input type="text" name="line[price][]" id="line_price_1" class="form-control"></td>
<td></td>
</tr>
</tbody>
<?php endif; ?>
<tfoot> <tr><td colspan="4" ></td><td class="fw-bold" id="subtotal">Subtotal : <?php echo e($subtotal); ?></td></tr>
<tr><td colspan="4" ></td>
<td class="fw-bold" data-initial-value="<?php echo e($gst); ?>" id="gst">GST[<?php echo e($gst); ?>%] : <?php echo e(Helper ::taxCal($gst,$subtotal)); ?></td>
</tr><tr>
<td colspan="4" ></td><td class="fw-bold" id="total">Subtotal+GST : <?php echo e(!empty($gst)?Helper::totalPrice($gst,$subtotal,1):$subtotal); ?></td></tr></td></tr></tfoot>
</table>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="invoice_type" class="required fw-bold fs-6 mb-2"><?php echo e(__('Invoice Type')); ?></label>
<div class="col-md-12">
<select class="form-select form-control-solid mb-3 mb-lg-0 mySelect2 <?php $__errorArgs = ['invoice_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> " name="invoice_type" aria-label="Select invoice_type" id="invoice_type" disabled>
<option value="">Select Invoice Type </option>
<option value="0" <?php echo e(($invoice->invoice_type==0)?'selected':''); ?>>One-time Invoice </option>
<option value="1" <?php echo e(($invoice->invoice_type==1)?'selected':''); ?>>Recurring Invoice </option>
</select>
<?php $__errorArgs = ['invoice_type'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3 <?php echo e(!empty($invoice->interval)?'':'d-none'); ?>" id="interval">
<label for="interval" class="required fw-bold fs-6 mb-2"><?php echo e(__('Recurring Time')); ?></label>
<div class="col-md-12">
<select class="form-select form-control-solid mb-3 mb-lg-0 mySelect2 <?php $__errorArgs = ['interval'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> " name="interval" aria-label="Select Recurring Time" disabled>
<option value="">Select Recurring Time</option>
<option value="weekly" <?php echo e(($invoice->interval=='weekly')?'selected':''); ?>>Weekly</option>
<option value="monthly" <?php echo e(($invoice->interval=='monthly')?'selected':''); ?>>Monthly</option>
<option value="yearly" <?php echo e(($invoice->interval=='yearly')?'selected':''); ?>>Yearly</option>
</select>
<?php $__errorArgs = ['interval'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="billing_address" class="required fw-bold fs-6 mb-2"><?php echo e(__('Billing Address')); ?></label>
<div class="col-md-12">
<textarea id="billing_address" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['billing_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="billing_address" required ><?php echo e($invoice->billing_address); ?></textarea>
<?php $__errorArgs = ['billing_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="billing_city" class="required fw-bold fs-6 mb-2"><?php echo e(__('Billing City')); ?></label>
<div class="col-md-12">
<input id="billing_city" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['billing_city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="billing_city" value="<?php echo e($invoice->billing_city); ?>" required autofocus>
<?php $__errorArgs = ['billing_city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="billing_state" class="required fw-bold fs-6 mb-2"><?php echo e(__('Billing State')); ?></label>
<div class="col-md-12">
<input id="billing_state" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['billing_state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="billing_state" value="<?php echo e($invoice->billing_state); ?>" required autofocus>
<?php $__errorArgs = ['billing_state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="billing_country" class="required fw-bold fs-6 mb-2"><?php echo e(__('Billing Country')); ?></label>
<div class="col-md-12">
<input id="billing_country" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['billing_country'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="billing_country" value="<?php echo e($invoice->billing_country); ?>" required autofocus>
<?php $__errorArgs = ['billing_country'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="billing_pin" class="required fw-bold fs-6 mb-2"><?php echo e(__('Billing Pincode')); ?></label>
<div class="col-md-12">
<input id="billing_pin" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['billing_pin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="billing_pin" value="<?php echo e($invoice->billing_pin); ?>" required autofocus>
<?php $__errorArgs = ['billing_pin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="shipping_address" class="required fw-bold fs-6 mb-2"><?php echo e(__('Shipping Address')); ?></label>
<div class="col-md-12">
<textarea id="shipping_address" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['shipping_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="shipping_address" required ><?php echo e($invoice->shipping_address); ?></textarea>
<?php $__errorArgs = ['shipping_address'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="shipping_city" class="required fw-bold fs-6 mb-2"><?php echo e(__('Shipping City')); ?></label>
<div class="col-md-12">
<input id="shipping_city" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['shipping_city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="shipping_city" value="<?php echo e($invoice->shipping_city); ?>" required autofocus>
<?php $__errorArgs = ['shipping_city'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="shipping_state" class="required fw-bold fs-6 mb-2"><?php echo e(__('Shipping State')); ?></label>
<div class="col-md-12">
<input id="shipping_state" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['shipping_state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="shipping_state" value="<?php echo e($invoice->shipping_state); ?>" required autofocus>
<?php $__errorArgs = ['shipping_state'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="shipping_country" class="required fw-bold fs-6 mb-2"><?php echo e(__('Shipping Country')); ?></label>
<div class="col-md-12">
<input id="shipping_country" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['shipping_country'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="shipping_country" value="<?php echo e($invoice->shipping_country); ?>" required autofocus>
<?php $__errorArgs = ['shipping_country'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="fv-row mb-10 mb-3">
<label for="shipping_pin" class="required fw-bold fs-6 mb-2"><?php echo e(__('Shipping Pincode')); ?></label>
<div class="col-md-12">
<input id="shipping_pin" type="text" class="form-control form-control-solid mb-3 mb-lg-0 <?php $__errorArgs = ['shipping_pin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="shipping_pin" value="<?php echo e($invoice->shipping_pin); ?>" required autofocus>
<?php $__errorArgs = ['shipping_pin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
<span class="invalid-feedback" role="alert">
<strong><?php echo e($message); ?></strong>
</span>
<?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>
</div>
<div class="row mb-0 mb-3">
<div class="col-md-12">
<button type="submit" class="btn btn-primary">
<?php echo e(__('Save')); ?>
</button>
</div>
</div>
</form>
</div>
<!--end::Container-->
</div>
<!--end::Content-->
<?php echo $__env->make('invoices.add_customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('layouts.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<!--end::Wrapper-->
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('assets/js/main.js')); ?>"></script>
<script>
$('.mySelect2').select2({
selectOnClose: true
});
</script>
<?php $__env->stopSection(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.weblayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\test\resources\views/invoices/edit.blade.php ENDPATH**/ ?>