You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					104 lines
				
				4.8 KiB
			
		
		
			
		
	
	
					104 lines
				
				4.8 KiB
			| 
								 
											2 years ago
										 
									 | 
							
								@extends('layouts.admin.app')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@section('title',translate('Categories Bulk Import'))
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@push('css_or_js')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@endpush
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@section('content')
							 | 
						||
| 
								 | 
							
								    <div class="content container-fluid">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        <div class="page-header">
							 | 
						||
| 
								 | 
							
								            <h1 class="page-header-title text-capitalize">
							 | 
						||
| 
								 | 
							
								                <div class="card-header-icon d-inline-flex mr-2 img">
							 | 
						||
| 
								 | 
							
								                    <img src="{{asset('/public/assets/admin/img/export.png')}}" alt="">
							 | 
						||
| 
								 | 
							
								                </div>
							 | 
						||
| 
								 | 
							
								                {{translate('messages.categories')}} {{translate('messages.bulk_import')}}
							 | 
						||
| 
								 | 
							
								            </h1>
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								        <!-- Content Row -->
							 | 
						||
| 
								 | 
							
								        <div class="card">
							 | 
						||
| 
								 | 
							
								            <div class="card-body p-2">
							 | 
						||
| 
								 | 
							
								                <div class="export-steps style-2">
							 | 
						||
| 
								 | 
							
								                    <div class="export-steps-item">
							 | 
						||
| 
								 | 
							
								                        <div class="inner">
							 | 
						||
| 
								 | 
							
								                            <h5>{{ translate('STEP 1') }}</h5>
							 | 
						||
| 
								 | 
							
								                            <p>
							 | 
						||
| 
								 | 
							
								                                {{ translate('Download Excel File') }}
							 | 
						||
| 
								 | 
							
								                            </p>
							 | 
						||
| 
								 | 
							
								                        </div>
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                    <div class="export-steps-item">
							 | 
						||
| 
								 | 
							
								                        <div class="inner">
							 | 
						||
| 
								 | 
							
								                            <h5>{{ translate('STEP 2') }}</h5>
							 | 
						||
| 
								 | 
							
								                            <p>
							 | 
						||
| 
								 | 
							
								                                {{ translate('Match Spread sheet data according to instruction') }}
							 | 
						||
| 
								 | 
							
								                            </p>
							 | 
						||
| 
								 | 
							
								                        </div>
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                    <div class="export-steps-item">
							 | 
						||
| 
								 | 
							
								                        <div class="inner">
							 | 
						||
| 
								 | 
							
								                            <h5>{{ translate('STEP 3') }}</h5>
							 | 
						||
| 
								 | 
							
								                            <p>
							 | 
						||
| 
								 | 
							
								                                {{ translate('Validate data and and complete import') }}
							 | 
						||
| 
								 | 
							
								                            </p>
							 | 
						||
| 
								 | 
							
								                        </div>
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                </div>
							 | 
						||
| 
								 | 
							
								                <div class="jumbotron  pt-1 pb-4 mb-0 bg-white">
							 | 
						||
| 
								 | 
							
								                    <h2 class="mb-3 text-primary">{{ translate('messages.instructions') }}</h2>
							 | 
						||
| 
								 | 
							
								                    <p> {{ translate('1. Download the format file and fill it with proper data.') }}</p>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    <p><p>{{ translate('2. You can download the example file to understand how the data must be filled.') }}</p>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    <p>{{ translate('3. Once you have downloaded and filled the format file, upload it in the form below and
							 | 
						||
| 
								 | 
							
								                        submit.') }}</p>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    <p> {{ translate('4. After uploading categories you need to edit them and set category`s images.') }}</p>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    <p> {{ translate('5. For parent category "position" will 0 and for sub category it will be 1.') }}</p>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                    <p> {{ translate('6. By default status will be 1, please input the right ids.') }}</p>
							 | 
						||
| 
								 | 
							
								                    <p> {{ translate('7. For Priority set 0 for Normal, 1 for Medium and 2 for high.') }}</p>
							 | 
						||
| 
								 | 
							
								                    <p> {{ translate('8. For a category parent_id will be empty, for sub category it will be the category id.') }}</p>
							 | 
						||
| 
								 | 
							
								                </div>
							 | 
						||
| 
								 | 
							
								                <div class="text-center pb-4">
							 | 
						||
| 
								 | 
							
								                    <h3 class="mb-3 export--template-title">{{ translate('Download Spreadsheet Template') }}</h3>
							 | 
						||
| 
								 | 
							
								                    <div class="btn--container justify-content-center export--template-btns">
							 | 
						||
| 
								 | 
							
								                        <a href="{{asset('public/assets/categories_bulk_format.xlsx')}}" download=""
							 | 
						||
| 
								 | 
							
								                            class="btn btn-dark">{{ translate('Template with Existing Data') }}</a>
							 | 
						||
| 
								 | 
							
								                        <a href="{{asset('public/assets/categories_bulk_without_data_format.xlsx')}}" download=""
							 | 
						||
| 
								 | 
							
								                            class="btn btn-dark">{{ translate('Template without Data') }}</a>
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                </div>
							 | 
						||
| 
								 | 
							
								            </div>
							 | 
						||
| 
								 | 
							
								        </div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        <form class="product-form" action="{{route('admin.category.bulk-import')}}" method="POST"
							 | 
						||
| 
								 | 
							
								            enctype="multipart/form-data">
							 | 
						||
| 
								 | 
							
								            @csrf
							 | 
						||
| 
								 | 
							
								            <div class="card mt-2 rest-part">
							 | 
						||
| 
								 | 
							
								                <div class="card-body">
							 | 
						||
| 
								 | 
							
								                    <h4 class="mb-3">{{translate('messages.Import Categories File')}}</h4>
							 | 
						||
| 
								 | 
							
								                    <div class="custom-file custom--file">
							 | 
						||
| 
								 | 
							
								                        <input type="file" name="products_file" class="form-control" id="bulk__import">
							 | 
						||
| 
								 | 
							
								                        <label class="custom-file-label" for="bulk__import">{{ translate('Choose File') }}</label>
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                </div>
							 | 
						||
| 
								 | 
							
								                <div class="card-footer border-0">
							 | 
						||
| 
								 | 
							
								                    <div class="btn--container justify-content-end">
							 | 
						||
| 
								 | 
							
								                        <button type="reset" class="btn btn--reset">{{ translate('Clear') }}</button>
							 | 
						||
| 
								 | 
							
								                        <button type="submit" class="btn btn--primary">{{ translate('Submit') }}</button>
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                </div>
							 | 
						||
| 
								 | 
							
								            </div>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        </form>
							 | 
						||
| 
								 | 
							
								    </div>
							 | 
						||
| 
								 | 
							
								@endsection
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@push('script')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@endpush
							 |