Current File : //home/tradevaly/public_html/resources/views/backend/pages/package/add.blade.php |
@extends('backend.ayaan.master')
@push('title') Dashboard @endpush
@section('content')
@component('components.breadcrumb')
@slot('li_1') Dashboards @endslot
@slot('title') Add Package @endslot
@endcomponent
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-icon card-header-info">
<div class="card-icon d-flex justify-items-left">
<i class="fa fa-id-badge "></i>
<h4 class="card-title">Add New Package
</h4>
</div>
</div>
<div class="card-body">
<form action="{{route('admin.package.add')}}" method="POST" enctype="multipart/form-data">@csrf
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Package Name")}}</label>
<input type="text" name="name" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Price")}}</label>
<input type="number" name="price" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Discount In %")}}</label>
<input type="number" name="discount" step="0.01" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Package details")}}</label>
<textarea name="details" class="form-control" placeholder="Insert package details"></textarea>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Upload Image")}}</label>
<input type="file" name="image" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Upload PDF")}}</label>
<input type="file" name="pdf" class="form-control" required>
</div>
</div>
<button type="submit" class="btn btn-info mt-5">Upload</button>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
@endsection
@section('script')
<!-- apexcharts -->
<script src="{{ asset('/assets/libs/apexcharts/apexcharts.min.js') }}"></script>
<!-- dashboard init -->
<script src="{{ asset('/assets/js/pages/dashboard.init.js') }}"></script>
<script>
ClassicEditor
.create( document.querySelector( '#editor1' ) )
.catch( error => {
console.error( error );
} );
</script>
@endsection
{{-- @extends('backend.layouts.app')
@push('style')
@endpush
@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">{{translate("Add new package")}}
</h4>
</div>
<div class="card-body">
<form action="{{url('b2b/package/add')}}" method="POST" enctype="multipart/form-data">@csrf
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Package Name")}}</label>
<input type="text" name="name" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Price")}}</label>
<input type="number" name="price" class="form-control" required>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 mt-5">
<div class="form-group">
<textarea name="details" id="editor" class="form-control" placeholder="Insert package details"></textarea>
</div>
</div>
<div class="col-md-6">
</div>
<div class="col-md-6 col-sm-6">
<h4 class="title">{{translate("Avatar")}}</h4>
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="{{asset('assets/backend/img/image_placeholder.jpg')}}" alt="...">
</div>
<div class="fileinput-preview fileinput-exists thumbnail img-circle"></div>
<div>
<span class="btn btn-round btn-info btn-file">
<span class="fileinput-new">{{translate("Add Image")}}</span>
<input type="file" name="image" />
</span>
</div>
</div>
</div>
<div class="col-md-6 col-sm-6">
<h4 class="title">Detail Brochure</h4>
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="{{asset('assets/backend/img/image_placeholder.jpg')}}" alt="...">
</div>
<div class="fileinput-preview fileinput-exists thumbnail img-circle"></div>
<div>
<span class="btn btn-round btn-info btn-file">
<span class="fileinput-new">{{translate("Add PDF")}}</span>
<input type="file" name="pdf" />
</span>
</div>
</div>
</div>
</div>
</div>
<button type="submit" class="btn btn-info pull-right">{{translate("Confirm")}}</button>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
</div>
@stop
@push('script')
<script>
</script>
@endpush
--}}