403Webshell
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/resources/views/quotations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/billing/resources/views/quotations/create.blade.php
@extends('layouts.weblayout')

@section('content')
@include('layouts.sidebar')
<!--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">Add Quotation</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="{{route('home')}}" class="text-muted">Dashboard</a>
                    </li>
                    <li class="breadcrumb-item text-dark">Add Quotation</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="{{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">Add Quotation</h3>
                    </div>
                    <!--end::Card title-->
                  
                </div>
                <!--begin::Card header-->
                <!--begin::Card body-->
                <div class="card-body p-9">
                    @if (Session::has('errors'))
                    <div class="alert alert-danger alert-dismissible fade show" role="alert">
                        <h4 class="alert-heading">Error!</h4>
                        <p>
                            <ul>
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </p>
        
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                @endif
                    @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">{{$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-->
                        @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">{{$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-->
                    @endif
                    <form method="POST" class="form"  enctype="multipart/form-data" action="{{ route('quotation.store') }}">
                        @csrf
                        <div class="fv-row mb-10 mb-3">
                            <label for="inv_id" class="required fw-bold fs-6 mb-2">{{ __('Order Id') }}</label>
            
                            <div class="col-md-12">
                                <input id="inv_id" type="text" class="form-control form-control-solid mb-3 mb-lg-0   @error('inv_id') is-invalid @enderror" name="inv_id" value="{{$inv_id }}" required readonly autofocus>
            
                                @error('inv_id')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>                        
                        <div class="fv-row mb-10 mb-3">
                            <label for="customer" class="required fw-bold fs-6 mb-2">{{ __('Customer') }}</label>
                            &nbsp;<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  @error('customer') is-invalid @enderror" name="customer" id="customer" aria-label="Select Customer" onchange="addAddress('{{route('invoice.customer.address')}}')">
                                    <option>Select Customer </option>
                                    @forelse($customers as $c)
                                    <option value="{{$c->id}}" {{(old('customer')==$c->id)?'selected':''}}>{{$c->firstname.' '.$c->lastname}}</option>
                                    @empty
                                    @endforelse
                                </select>            
                                @error('customer')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </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">{{ __('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>
                                        <tr>
                                            <td>
                                                
                                                    <select onchange="calculateme(1)" name="line[product][]" id="line_product_1" class="form-select line mySelect2">
                                                    <option value="">Select Product</option>
                                                    @foreach($products as $p)
                                                    <option value="{{$p->id}}" {{(old('product')==$p->id)?'selected':''}}>{{$p->name}}</option>
                                                    @endforeach
                                                </select>
                                               
                                            </td>
                                            <td><input type="number" name="line[qty][]" id="line_qty_1" min="1" onblur="changeqty(1)" class="form-control qty">
                                               </td> 
                                            <td><input type="text" name="line[price][]" id="line_price_1" data-initial-value="1" class="form-control price">
                                              </td>
                                              <td><input type="hidden" name="line[totalprice][]" id="line_total_price_1" data-initial-value="" class="form-control price">
                                              </td>
                                        </tr>
                                     
                                    </tbody>
                                    <tfoot> <tr><td colspan="4" ></td><td class="fw-bold" id="subtotal"></td></tr>
                                        <tr><td colspan="4" ></td><td class="fw-bold" id="gst" data-initial-value=""></td></tr><tr>
                                        <td colspan="4" ></td><td class="fw-bold" id="total"></td></tr></tfoot>
                                </table>
                            </div>
                        </div>

 
                        {{-- billing address --}}
                        <div class="fv-row mb-10 mb-3">
                            <label for="billing_address" class="required fw-bold fs-6 mb-2">{{ __('Billing Address') }}</label>
            
                            <div class="col-md-12">
                                <textarea id="billing_address"  class="form-control form-control-solid mb-3 mb-lg-0   @error('billing_address') is-invalid @enderror" name="billing_address"  required  >{{old('billing_address')}}</textarea>
            
                                @error('billing_address')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="billing_city" class="required fw-bold fs-6 mb-2">{{ __('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   @error('billing_city') is-invalid @enderror" name="billing_city" value="{{old('billing_city')}}" required  autofocus>
            
                                @error('billing_city')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="billing_state" class="required fw-bold fs-6 mb-2">{{ __('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   @error('billing_state') is-invalid @enderror" name="billing_state" value="{{old('billing_state')}}" required  autofocus>
            
                                @error('billing_state')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="billing_country" class="required fw-bold fs-6 mb-2">{{ __('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   @error('billing_country') is-invalid @enderror" name="billing_country" value="{{old('billing_country')}}" required  autofocus>
            
                                @error('billing_country')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="billing_pin" class="required fw-bold fs-6 mb-2">{{ __('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   @error('billing_pin') is-invalid @enderror" name="billing_pin" value="{{old('billing_pin')}}" required  autofocus>
            
                                @error('billing_pin')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        {{-- shipping address --}}
                        <div class="fv-row mb-10 mb-3">
                            <label for="shipping_address" class="required fw-bold fs-6 mb-2">{{ __('Shipping Address') }}</label>
            
                            <div class="col-md-12">
                                <textarea id="shipping_address" class="form-control form-control-solid mb-3 mb-lg-0   @error('shipping_address') is-invalid @enderror" name="shipping_address"  required  >{{old('shipping_address')}}</textarea>
            
                                @error('shipping_address')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="shipping_city" class="required fw-bold fs-6 mb-2">{{ __('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   @error('shipping_city') is-invalid @enderror" name="shipping_city" value="{{old('shipping_city')}}" required  autofocus>
            
                                @error('shipping_city')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="shipping_state" class="required fw-bold fs-6 mb-2">{{ __('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   @error('shipping_state') is-invalid @enderror" name="shipping_state" value="{{old('shipping_state')}}" required  autofocus>
            
                                @error('shipping_state')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="shipping_country" class="required fw-bold fs-6 mb-2">{{ __('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   @error('shipping_country') is-invalid @enderror" name="shipping_country" value="{{old('shipping_country')}}" required  autofocus>
            
                                @error('shipping_country')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                        <div class="fv-row mb-10 mb-3">
                            <label for="shipping_pin" class="required fw-bold fs-6 mb-2">{{ __('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   @error('shipping_pin') is-invalid @enderror" name="shipping_pin" value="{{old('shipping_pin')}}" required  autofocus>
            
                                @error('shipping_pin')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
                   
                        <div class="row mb-0 mb-3">
                            <div class="col-md-12">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Save') }}
                                </button>
                            </div>
                        
                        </div>
                    </form>
        </div>
        <!--end::Container-->
    </div>
 
    <!--end::Content-->
    @include('invoices.add_customer')
  @include('layouts.footer')
</div>
<!--end::Wrapper-->
@section('script')
<script src="{{asset('assets/js/main.js')}}"></script>
<script>
    $('.mySelect2').select2({
  selectOnClose: true
});
</script>
 @endsection
 @section('css')
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css"  />
<style>
    .select2-container .select2-selection--single{height: 41px !important;}
</style>
@stop
 @endsection

Youez - 2016 - github.com/yon3zu
LinuXploit