Current File : //home/tradevaly/text.tradevaly.com.bd/resources/views/user/pages/package/add_features.blade.php |
@extends('backend.layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-info">
<div class="card-icon">
<i class="material-icons">add_task</i>
</div>
<h4 class="card-title">Add new Features
</h4>
</div>
<div class="card-body">
<form action="{{route('admin.package.addfeatured', $id)}}" method="POST" enctype="multipart/form-data">@csrf
<div class="row">
<div class="col-md-6">
<div class="form-group">
<select class="form-control" name="feature_id" onchange="get_status(this.value)" required>
<option value="">Select Feature</option>
@foreach(\App\Models\Feature::all() as $feature)
<option value="{{ $feature->id }}">{{ $feature->name }}</option>
@endforeach
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<span id="show_city"></span>
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-info pull-right">Confirm</button>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
</div>
<script>
function get_status(id){
var url = '{{route("package.getfeature", ":id")}}';
url = url.replace(':id',id);
$.ajax({
url:url,
method:"get",
success:function(data){
$("#show_city").html(data);
}
});
}
</script>
@stop
@push('script')
@endpush