Current File : //home/tradevaly/public_html/resources/views/user/pages/editoffer.blade.php
@extends('user.layouts.app')

@push('style')

@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-6">
      <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">Edit Buy Offer
          </h4>
        </div>
        <div class="card-body">
          <form action="{{route('user.editoffer', $product->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">Offer Title</label>
                  <input type="text" name="title" value="{{$product->title}}" class="form-control" required>
                </div>
              </div>
              <div class="col-md-6">
                <div class="form-group">
              <select class="selectpicker" data-size="12" data-style="btn btn-rose" title="Single Select" name="category_id">
                    <option disabled selected>Select Category</option>
                    @foreach ($caegories as $category)
                    <option value="{{$category->id}}" @if($product->category_id == $category->id) selected @endif>{{$category->name}}</option>
                    @endforeach
                  </select>
                  </div>
            </div>
            
         
                 <div class="col-md-6">
                    <div class="form-group">
                  <select class="selectpicker" data-size="12" data-style="btn btn-rose" title="Single Select" name="tags[]" multiple>
                        <option disabled selected>Select Tags</option>
                        @foreach ($tags as $category)
                        <option value="{{$category->name}}">{{$category->name}}</option>
                        @endforeach
                      </select>
                </div>
                </div>
            
            
              
              
               <div class="col-md-6 mb-5">
                <div class="form-group">
                  <h3 class="mb-3">Enter Description</h3>
                  <textarea  id="editor" name="des" class="form-control mb-5" placeholder="Enter Details">{!! $product->details !!}</textarea>
                </div>
              </div>
              
            
            </div>
            <button type="submit" class="btn btn-info pull-right">Upload</button>
            <div class="clearfix"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
@stop

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