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.
 
 

103 lines
4.6 KiB

@extends('layouts.admin.app')
@section('title',translate('Food 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.foods')}} {{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">
<h3>{{ translate('Instructions') }} : </h3>
<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 foods you need to edit them and set image and variations.') }}</p>
<p>{{ translate('5. You can get restaurant id from their list, please input the right ids.') }}</p>
<p>{{ translate('6. You can upload your product images in product folder from gallery, and copy image`s path.') }}</p>
<p>{{ translate('7. For veg food enter 1 and for non-veg enter 0 on veg field.') }}</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/foods_bulk_format.xlsx')}}" download=""
class="btn btn-dark">{{ translate('Template with Existing Data') }}</a>
<a href="{{asset('public/assets/foods_bulk_format_nodata.xlsx')}}" download=""
class="btn btn-dark">{{ translate('Template without Data') }}</a>
</div>
</div>
</div>
</div>
<form class="product-form" action="{{route('admin.food.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('Import Foods 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