Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/user/pages/package/edit.blade.php
@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">Edit 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">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">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-3 col-sm-4">
                <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">Change Image</span>
                      <input type="file" name="image" />
                    </span>
                  </div>
                </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>
@stop

@push('script')
<script>
</script>
@endpush