@extends('layouts.app')

@section('title','Maintain Account')



@section('content')

<div class="main-content">

                <div class="page-content">
                    <div class="container-fluid">

                        <div class="row accounts_page">
                            <div class="col-12">
                            
                                <div class="row">
                                    <!-- Validation Errors -->
									@if ($errors->any())
								    <div class="alert alert-danger" role="alert">
										<button type="button" class="close" data-dismiss="alert">×</button>
									    <ul>
										@foreach ($errors->all() as $error)
											<li>{{ $error }}</li>
									    @endforeach
									    </ul>
									</div>
							        @endif
    
								    @if (session('status'))
								    <div class="alert alert-success" role="alert">
								        <button type="button" class="close" data-dismiss="alert">×</button>
								                {{ session('status') }}
								    </div>
								    @endif 
                                </div>
                                    
                                <form method="POST" action="{{route('maintain_accounts')}}">

                                    @csrf
        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Details</span>
        									</div>
        									<div class="card-body">
        										<div class="row mb-3">
        									      <input type="hidden" name="company_name" value="{{Auth::user()->name}}">
        											
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Ref:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="ref_name" class="form-control" id="horizontal-firstname-input" placeholder="Ref used internally" value="{{old('ref_name')}}" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-form-label">Name:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="name_on_invoice" class="form-control" id="horizontal-firstname-input" placeholder="Name used on invoice"  value="{{old('name_on_invoice')}}" required>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-form-label">Name Alias:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="alias_name" class="form-control" id="horizontal-firstname-input" placeholder="Name displayed to drivers"  value="{{old('alias_name')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Address:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="address" class="form-control" id="account_address" placeholder="Used on customer invoice and emails" value="{{old('address')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Prepaid:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select class="form-control" name="pre_paid">
	                                                    	<option value="no">No</option>
	                                                    	<option value="yes">Yes</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->

        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Payment:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select class="form-control" name="payment_method">
	                                                    	<option value="invoice">Invoice</option>
	                                                    	<option value="card">Card</option>
	                                                    	<option value="cash">Cash</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Profile:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select class="form-control" name="profile_type">
	                                                    	<option value="DISPATCH">Dispatch (Default)</option>
	                                                    	<option value="INCAR">IN CAR (Card Payments made by consumers on the Driver App)</option>
	                                                    	<option value="STREET">STREET (Card Payments made by consumers on the Driver App for Street Jobs)</option>
	                                                    	<option value="APP">APP  (Card Payments made by consumers on the Consumer App)</option>
	                                                    	<option value="WEB">WEB  (Card Payments made by consumers on the Web Booker)</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											
	                                                <label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Credit Card:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select class="form-control" name="card_type">
	                                                    	<option value="">Please Select</option>
	                                                    	<option value="1299">VISA CREDIT</option>
															<option value="1300">VISA DEBIT</option>
															<option value="1301">MASTERCARD CREDIT</option>
															<option value="1302">MASTERCARD DEBIT</option>
															<option value="1303">AMERICAN EXPRESS</option>
															<option value="1304">VISA ELECTRON</option>
															<option value="1305">LASER</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>

        										</div><!-- inner form row end -->
        										
        										
        									</div>	
        								</div>	<!-- card end -->
	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Tags</span>
        									</div>
        									<div class="card-body">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Tags:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    
														<input class="form-control" id="choices-text-unique-values" type="text" name="tags" 
                                                         placeholder="Add Tags by separating commas" value="{{old('tags')}}" />  
														
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									
        									</div>	
        								</div>
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Details</span>
        									</div>
        									<div class="card-body account_start_expiry_card_body">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Identifier:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input class="form-control" id="choices-text-unique-values" type="text"
                                                            disabled>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->

        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Start Date:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <div class="row" style="padding-right: 12px;">
	                                                    	<div class="col-md-4">
	                                                    		<input type="date" name="start_date" class="form-control datepicker">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="text" name="date_verb" class="form-control date_verb" readonly="">
	                                                    	</div>
	                                                    	<div class="col-md-4">
	                                                    		<input type="time" name="account_start_time" class="form-control book_time">
	                                                    	</div>
	                                                    </div>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Expiry:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input class="form-control" id="acount_expiry" type="date" name="account_expiry">
                                                      
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									
        									</div>	
        								</div>	<!-- card end -->

        								        
        							</div><!-- second col outer 6 end -->

        									

        									
        						</div> <!-- outer row end -->

        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        							
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Management Notes</span>
        									</div>
        									<div class="card-body">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Mgt Notes:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <textarea name="mgt_notes" class="form-control" placeholder="Management notes will appear to all operators / telephonists"></textarea>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								

        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Driver Notes</span>
        									</div>
        									<div class="card-body">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Driver Notes:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <textarea name="driver_notes" class="form-control" placeholder="will apear on driver app"></textarea>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- second col outer 6 end -->

        									

        									
        						</div> <!-- outer row end -->

        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        							
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Primary Contact</span>
        									</div>
        									<div class="card-body">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Contact Name:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="contact_name" class="form-control" value="{{old('contact_name')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Contact Phone:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="contact_phone" class="form-control" value="{{old('contact_phone')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Email:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="email" name="contact_email" class="form-control" value="{{old('contact_email')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Pin:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="password" name="account_pin" class="form-control">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								

        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Web Booker</span>
        									</div>
        									<div class="card-body" style="    padding-bottom: 158px !important;">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Web Notes:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <textarea name="web_notes" class="form-control" placeholder="Will appear on the web booker to customers only"></textarea>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- second col outer 6 end -->

        									

        									
        						</div> <!-- outer row end -->
        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        							
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Charges</span>
        									</div>
        									<div class="card-body" style="    padding-bottom: 72px !important;">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">No-Show Price:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="no_show_price" class="form-control" placeholder="The amount to charge the account in the event of a no-show" value="{{old('no_show_price')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">No-Show Cost:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="no_show_cost" class="form-control" placeholder="The amount the driver receives in the event of a no-show" value="{{old('no_show_cost')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Limit:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="limit" class="form-control" value="{{old('limit')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Current Balance:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="current_balance" class="form-control" value="{{old('current_balance')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Invoice Discount (%):</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="invoice_discount" class="form-control" value="{{old('invoice_discount')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								

        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Charges</span>
        									</div>
        									<div class="card-body">
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Service Charge:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="service_charge" class="form-control" value="{{old('service_charge')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Min S/C:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="min_service_charge" class="form-control" value="{{old('min_service_charge')}}" placeholder="min s/c is an absolute value">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">S/C Type:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="service_charge_type" class="form-control">
	                                                    	<option value="PERCENTAGE">Percentage</option>
															<option value="ABSOLUTE">Absolute Value</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Booking Charge:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="booking_charge" class="form-control" value="{{old('booking_charge')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Min B/C:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="min_b_c" class="form-control" value="{{old('min_b_c')}}" placeholder="min b/c is an absolute value">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Min B/C:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="booking_charge_type" class="form-control">
	                                                    	<option value="PERCENTAGE">Percentage</option>
															<option value="ABSOLUTE">Absolute Value</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- second col outer 6 end -->
		
        						</div> <!-- outer row end -->
        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        							
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Payment/VAT</span>
        									</div>
        									<div class="card-body" style="    padding-bottom: 58px !important;">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Frequency:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<select name="payment_type" class="form-control">
	                                                		<option value="MANUAL">MANUAL</option>
															<option value="WEEKLY">EVERY WEEK</option>
															<option value="BI-WEEKLY">BI-WEEKLY</option>
															<option value="MONTHLY">EVERY MONTH</option>
															<option value="CMONTHLY">EVERY CALENDAR MONTH</option>
	                                                	</select>
	                                                   
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Frequency Day:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<select name="payment_day" class="form-control">
	                                                		<option value="SUNDAY">SUNDAY</option>
															<option value="MONDAY">MONDAY</option>
															<option value="TUESDAY">TUESDAY</option>
															<option value="WEDNESDAY">WEDNESDAY</option>
															<option value="THURSDAY">THURSDAY</option>
															<option value="FRIDAY">FRIDAY</option>
															<option value="SATURDAY">SATURDAY</option>
	                                                	</select>
	                                                   
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Apply VAT:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<select name="apply_vat" class="form-control">
	                                                		<option value="NO">NO</option>
															<option value="PRICE AND SC">Apply to Price + SC</option>
															<option value="SC">Apply to SC only</option>
	                                                	</select>
	                                                   
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">VAT Rate:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="vat_rate" class="form-control" value="{{old('vat_rate')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								

        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Options</span>
        									</div>
        									<div class="card-body">
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Shared Bookings:</label>
	                                                <div class="col-lg-7 col-md-8">
														<select name="shared_bookings" class="form-control">
	                                                		<option value="NO">NO</option>
															<option value="YES">YES</option>
															
	                                                	</select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Priority:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="booking_priority" class="form-control">
	                                                		<option value="5">Priority 5 (Regular Priority)</option>
															<option value="4">Priority 4</option>
															<option value="3">Priority 3</option>
															<option value="2">Priority 2</option>
															<option value="1">Priority 1 (Top Priority)</option>
	                                                	</select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Review:</label>
	                                                <div class="col-lg-7 col-md-8">
														<select name="to_be_reviewed" class="form-control">
	                                                		<option value="NO">NO</option>
															<option value="YES">YES</option>
															
	                                                	</select>
	                                                	<span style="font-weight:bold;"><i class="fas fa-exclamation"></i> Should all bookings on this account be marked for review?</span>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Web Type:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="web_type" class="form-control">
	                                                    	<option value="REGULAR">Regular Web Account</option>
															<option value="SIMPLE">Single Address Account (eg: Hotel)</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- second col outer 6 end -->
		
        						</div> <!-- outer row end -->

        						<div class="row">
        									
        							<div class="col-lg-6 col-md-6">
        							
        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Account Discounts</span>
        									</div>
        									<div class="card-body" style="    padding-bottom: 112px !important;">
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Discount Price:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<input type="number" name="discount_price" class="form-control" value="{{old('discount_price')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Discount Price Type:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<select name="discount_price_type" class="form-control">
	                                                		<option value="PERCENTAGE">Percentage</option>
															<option value="ABSOLUTE">Absolute Value</option>
															
	                                                	</select>
	                                                   
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Discount Cost:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<input type="number" name="discount_cost" class="form-control" value="{{old('discount_cost')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Discount Cost Type:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                	<select name="discount_cost_type" class="form-control">
	                                                		<option value="PERCENTAGE">Percentage</option>
															<option value="ABSOLUTE">Absolute Value</option>
															
	                                                	</select>
	                                                   
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										
        										
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- first col outer 6 end -->

        							<div class="col-lg-6 col-md-6">
        								

        								<div class="card">
        									<div class="card-header" style="padding: 0.8rem 1.25rem !important;">
        										<span style="font-weight:bold;">Other</span>
        									</div>
        									<div class="card-body">
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label"> Export ID:</label>
	                                                <div class="col-lg-7 col-md-8">
														<input type="text" name="export_id" class="form-control" value="{{old('export_id')}}">
														<span style="font-weight:bold;"><i class="fas fa-exclamation"></i> The reference or identifier for this account in external systems. eg: Your Sage Export SI ID</span>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Purchase Order:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="text" name="purchase_order" class="form-control" value="{{old('purchase_order')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Output Preference:</label>
	                                                <div class="col-lg-7 col-md-8">
														<select name="output_options" class="form-control">
	                                                		<option value="">ALL</option>
															<option value="PRINT">PRINT</option>
															<option value="EMAIL">EMAIL</option>
															<option value="PRINT & EMAIL">PRINT & EMAIL</option>
															<option value="EXCEL">EXCEL</option>
															<option value="EXCEL & EMAIL">EXCEL & EMAIL</option>
															<option value="PRINT & EMAIL & EXCEL">PRINT & EMAIL & EXCEL</option>
															<option value="PRINT NOT POST">PRINT NOT POST</option>
															
	                                                	</select>
	                                                	
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Payment Terms:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <input type="number" name="payment_terms" class="form-control" value="{{old('payment_terms')}}">
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        										<div class="row mb-3">
        											<label class="col-lg-3 col-md-4 col-sm-3 col-form-label">Invoice Footer:</label>
	                                                <div class="col-lg-7 col-md-8">
	                                                    <select name="invoice_footer" class="form-control">
	                                                    	<option value="NONE">NONE</option>
															<option value="STANDARD">STANDARD</option>
															<option value="FACTORING">FACTORING</option>
	                                                    </select>
	                                                </div>
	                                                <div class="col-lg-2 col-md-2"></div>
	                                                
        										</div><!-- inner form row end -->
        									</div>	
        								</div><!-- card end -->	
        								        
        							</div><!-- second col outer 6 end -->
		
        						</div> <!-- outer row end -->

        						<div class="row">
        							<div class="col-md-12">
        								<div class="card">
        									<div class="card-body">
        										<button type="submit" class="btn btn-md btn-primary w-md btn-right distance_form">Save</button>
        									</div>
        								</div>
        							</div>
        						</div>

                                </form>
        
                            
                                
                            </div> <!-- end col -->
                        </div> <!-- end row -->
        
                    </div> <!-- container-fluid -->
                </div>
                <!-- End Page-content -->

                
            </div>
            <!-- end main content-->


@endsection

