<form class="g-3 row auto-width" action="{{route('services.update',$Service->id)}}" method="POST" enctype='multipart/form-data'>
  <!-- For validation comment on -->
  @csrf
  @method('PUT')
  <div class="col-md-12 col-sm-12">
    <div class="g-3 row">
      <div class="col-md-12">
        <label>Service Name <span class="text-danger">*</span></label>
        <input type="text" class="form-control" placeholder="Service Name" aria-label="title" name="title" value="{{$Service->title}}">
      </div>
      <div class="col-md-12">
        <label>Service Description</label>
        <textarea class="form-textarea" placeholder="Service Description" aria-label="description" id="description" name="description" rows="6">{{$Service->description}}</textarea>
      </div>
      <div class="col-md-12">
        <label>Icon Image <span class="text-danger">*</span></label>
        <input type="file" class="form-control" placeholder="icon" aria-label="icon" name="icon">
      </div>
      <div class="col-md-12">
        <label>Icon Image <span class="text-danger">*</span></label>
        <img src="{{ $Service->icon ? getTempUrl($Service->icon) : asset('path/to/default-image.png') }}" width="50px" height="50px">
    </div>

    </div>
  </div>
</form>
