@include('admin/include/header')
<!-- Main Content -->
<div class="main-content">
    <section class="section">
      <div class="section-header">
        <h1>Category</h1>
        <div class="section-header-breadcrumb">
          <div class="breadcrumb-item active"><a href="{{ url('admin/') }}">Dashboard</a></div>
          <div class="breadcrumb-item"><a href="javascript:void (0)">Category</a></div>
          <div class="breadcrumb-item">Category Banner</div>
        </div>
      </div>

      <div class="section-body">
        <div class="row">
          <div class="col-12 col-md-12 col-lg-12">
            <div class="card">
                <div class="card-header">
                  <h4>Category Banner</h4>
                </div>
                <div class="card-body">
                  <div class="form-group">
                    <label>Category</label>
                    <select id="category_banner_select" class="form-control select2">
                        <option value="">Select Category</option>
                        @foreach ($data as $parent)
                        <option data-attr="{{$parent->code}}" value={{ $parent->id }}>{{ $parent->title }}</option>
                        @endforeach
                      </select>
                  </div>
                  <div class="form-group editBanner d-none">
                    <input type="file" id="bannerInput" class="d-none" />
                    <button class="btn btn-dark" id="editBanner"><i class="far fa-edit"></i></button>
                    <button class="btn btn-dark" id="deleteBanner"><i class="far fa-trash-alt text-danger"></i></button>
                  </div>
                  <div class="form-group my-5">
                    <img id="category_image" class="img img-fluid shadow-lg d-none" src="" alt="">
                  </div>
                </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>

@include('admin/include/footer')
