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.
107 lines
5.2 KiB
107 lines
5.2 KiB
1 year ago
|
@extends('layouts.admin.app')
|
||
|
|
||
|
@section('title',translate('messages.Category Bulk Export'))
|
||
|
|
||
|
@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.export')}} {{translate('messages.categories')}}
|
||
|
</h1>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="card mt-2 rest-part">
|
||
|
<div class="card-body">
|
||
|
<div class="export-steps">
|
||
|
<div class="export-steps-item">
|
||
|
<div class="inner">
|
||
|
<h5>{{ translate('STEP 1') }}</h5>
|
||
|
<p>
|
||
|
{{ translate('Select Data Type') }}
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="export-steps-item">
|
||
|
<div class="inner">
|
||
|
<h5>{{ translate('STEP 2') }}</h5>
|
||
|
<p>
|
||
|
{{ translate('Select Data Range by Date and Export') }}
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<form class="product-form" action="{{route('admin.category.bulk-export')}}" method="POST"
|
||
|
enctype="multipart/form-data">
|
||
|
@csrf
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-4">
|
||
|
<div class="form-group">
|
||
|
<label class="input-label" for="exampleFormControlSelect1">{{translate('messages.type')}}<span
|
||
|
class="input-label-secondary"></span></label>
|
||
|
<select name="type" id="type" data-placeholder="{{translate('messages.select')}} {{translate('messages.type')}}" class="form-control" required title="Select Type">
|
||
|
<option value="all">{{translate('messages.all')}} {{translate('messages.data')}}</option>
|
||
|
<option value="date_wise">{{translate('messages.date')}} {{translate('messages.wise')}}</option>
|
||
|
<option value="id_wise">{{translate('messages.id')}} {{translate('messages.wise')}}</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
<div class="form-group id_wise">
|
||
|
<label class="input-label" for="exampleFormControlSelect1">{{translate('messages.start')}} {{translate('messages.id')}}<span
|
||
|
class="input-label-secondary"></span></label>
|
||
|
<input type="number" name="start_id" class="form-control">
|
||
|
</div>
|
||
|
<div class="form-group date_wise">
|
||
|
<label class="input-label" for="exampleFormControlSelect1">{{translate('messages.from')}} {{translate('messages.date')}}<span
|
||
|
class="input-label-secondary"></span></label>
|
||
|
<input type="date" name="from_date" class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-4">
|
||
|
<div class="form-group id_wise">
|
||
|
<label class="input-label" for="exampleFormControlSelect1">{{translate('messages.end')}} {{translate('messages.id')}}<span
|
||
|
class="input-label-secondary"></span></label>
|
||
|
<input type="number" name="end_id" class="form-control">
|
||
|
</div>
|
||
|
<div class="form-group date_wise">
|
||
|
<label class="input-label text-capitalize" for="exampleFormControlSelect1">{{translate('messages.to')}} {{translate('messages.date')}}<span
|
||
|
class="input-label-secondary"></span></label>
|
||
|
<input type="date" name="to_date" class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="btn--container justify-content-end">
|
||
|
<button class="btn btn--reset" type="reset">{{translate('messages.reset')}}</button>
|
||
|
<button class="btn btn--primary" type="submit">{{translate('messages.export')}}</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|
||
|
|
||
|
@push('script_2')
|
||
|
<script>
|
||
|
$(document).on('ready', function (){
|
||
|
$('.id_wise').hide();
|
||
|
$('.date_wise').hide();
|
||
|
$('#type').on('change', function()
|
||
|
{
|
||
|
$('.id_wise').hide();
|
||
|
$('.date_wise').hide();
|
||
|
$('.'+$(this).val()).show();
|
||
|
})
|
||
|
});
|
||
|
</script>
|
||
|
@endpush
|