143 lines
11 KiB
PHP
143 lines
11 KiB
PHP
<div class="modal fade" id="parties-import-modal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-dialog-centered modal-xl">
|
|
<div class="modal-content">
|
|
|
|
<!-- Modal Header -->
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="exampleModalLabel">{{__('Bulk Upload')}}</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
|
|
<!-- Modal Body -->
|
|
<div class="modal-body">
|
|
<div class="erp-table-section">
|
|
<div class="">
|
|
<div class="border-0">
|
|
<div class="card-bodys">
|
|
<form action="{{ route('business.parties.bulk-store', request('type')) }}" method="post" enctype="multipart/form-data" class="ajaxform">
|
|
@csrf
|
|
<div class="bulk-upload-container w-100">
|
|
<div class="d-flex justify-content-between align-items-center w-100">
|
|
<div class="bulk-input w-100">
|
|
<div class="row align-items-center">
|
|
<div class="col-lg-12">
|
|
<div class="custom-upload-wrapper">
|
|
<div class="custom-file-box">
|
|
<div class="custom-file-content">
|
|
<svg width="30" height="30" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 5V19M5 12H19" stroke="#4B5563" stroke-width="2.0" stroke-linecap="round"/>
|
|
</svg>
|
|
<span class="custom-upload-text">{{ __('Add File') }}</span>
|
|
</div>
|
|
|
|
<p class="preview-file d-none"></p>
|
|
<input type="file" name="file" class="preview-file-input" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex align-items-center justify-content-center gap-2 flex-wrap">
|
|
<button type="submit" class="add-order-btn process-csv-btn rounded-2 border-0 submit-btn mt-3">{{__('Submit')}}</button>
|
|
<a href="{{ asset('assets/party-bulk-upload.xlsx') }}" download="party-bulk-upload.xlsx" class="download-file-btn mt-3"><i class="fas fa-download"></i> {{__('Download Sample File')}}</a>
|
|
</div>
|
|
</div>
|
|
<div class="bulk-upload-container mt-3">
|
|
<div class="instruction-header">
|
|
<h5>{{__('Instructions')}}</h5>
|
|
<div class="mt-3">
|
|
<h6><strong>{{__('Note')}}: </strong> {{__('Please follow the instructions below to upload your file.')}}</h6>
|
|
<ul>
|
|
<li><b>{{__('1.')}}</b> {{__('Download the sample file first and add all your purchases data to it.')}}</li>
|
|
<li><b>{{__('2.')}}</b> <span class="text-danger">*</span> {{__('Indicates a required field. If you do not provide the required fields, the system will ignore except party information.')}}</li>
|
|
<li><b>{{__('3.')}}</b> {{__('After adding all your data, please save the file and then upload the updated version.')}}</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{-- Fields Documentation Table --}}
|
|
<div class="responsive-table mt-4 min-h-0">
|
|
<table class="table" id="datatable">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ __('SL') }}.</th>
|
|
<th class="text-start">{{ __('Field Name') }}</th>
|
|
<th class="text-start">{{ __('Description') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="business-category-data">
|
|
<tr>
|
|
<td>{{__('1.')}}</td>
|
|
<td class="text-start">{{__('Customer/Supplier Name')}} <span class="text-danger fw-bold">*</span></td>
|
|
<td class="text-start">{{__('The name of the party you are adding')}} ({{__('e.g.,')}} <b>{{__('James')}}</b>).</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('1.')}}</td>
|
|
<td class="text-start">{{__('Phone Number')}}</td>
|
|
<td class="text-start">
|
|
{{__('Phone number of the party.')}} ({{__('e.g.,')}} <b>{{__('01*******')}}</b>).
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('3.')}}</td>
|
|
<td class="text-start">{{__('Party Type')}} <span class="text-danger fw-bold">*</span></td>
|
|
<td class="text-start">
|
|
{{__('What is the party type. Retailer,Dealer,Wholesaler,Supplier. You have to store one of them.')}} ({{__('e.g.,')}} <b>{{__('Retailer')}}</b>).
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('4.')}}</td>
|
|
<td class="text-start">{{__('Balance')}}</td>
|
|
<td class="text-start">
|
|
{{__('Party current balance.')}} ({{__('e.g.,')}} <b>{{__('500')}}</b>)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('5.')}}</td>
|
|
<td class="text-start">{{__('Balance Type')}}</td>
|
|
<td class="text-start">{{__('Balance type need to be added. due, advance')}} ({{__('e.g.,')}} <b>{{__('due')}}</b>).</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('6.')}}</td>
|
|
<td class="text-start">{{__('Email')}}</td>
|
|
<td class="text-start">
|
|
{{__('A unique email for the party')}} ({{__('e.g.,')}} <b>{{__('abc@gmail.com')}}</b>).
|
|
<br><small>{{__('Email must be unique — duplicate email will be ignored.')}}</small>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('7.')}}</td>
|
|
<td class="text-start">{{__('Party Credit Limit')}}</td>
|
|
<td class="text-start">{{__('This number field only applicable for Retailer,Dealer,Wholesaler.')}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('8.')}}</td>
|
|
<td class="text-start">{{__('Address')}}</td>
|
|
<td class="text-start">{{__('Party address')}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('9.')}}</</td>
|
|
<td class="text-start">{{__('Dealer Price')}}</td>
|
|
<td class="text-start">{{__('Special discounted price for bulk resellers or dealers.')}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{__('10.')}}</td>
|
|
<td class="text-start">{{__('Tax No')}}</td>
|
|
<td class="text-start">{{__('Enter tax no')}}</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|