Current File : //home/tradevaly/public_html/resources/views/backend/pages/package/edit.blade.php |
@extends('backend.ayaan.master')
@push('title') Dashboard @endpush
@section('content')
@component('components.breadcrumb')
@slot('li_1') Dashboards @endslot
@slot('title') Edit 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">Edit Package
</h4>
</div>
</div>
<div class="card-body">
<form action="{{route('admin.package.edit', $package->id)}}" 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" value="{{$package->name}}" 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" value="{{$package->price}}" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating mt-4">{{translate("Discount")}}</label>
<input type="number" name="discount" step="0.01" class="form-control" value="{{$package->discount}}" 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">{{$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">
</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">
</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">draw</i>
</div>
<h4 class="card-title">{{translate("Edit new package")}}
</h4>
</div>
<div class="card-body">
<form action="{{route('admin.package.edit', $package->id)}}" method="POST" enctype="multipart/form-data">@csrf
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating">{{translate("Package Name")}}</label>
<input type="text" name="name" class="form-control" value="{{$package->name}}" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="bmd-label-floating">{{translate("Price")}}</label>
<input type="number" name="price" class="form-control" value="{{$package->price}}" 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">{{$package->details}}</textarea>
</div>
</div>
<div class="col-md-6">
</div>
<div class="col-md-6 col-sm-6">
<h4 class="title">Avatar</h4>
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="{{asset('storage/images/admin/package/'.$package['image'])}}" 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("Change 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
--}}