<form class="row g-3 auto-width" id="chamberForm" action="{{ route('doctor-chamber.update',$chamber->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('PUT')
    <!--name -->
    <div class="col-md-12">
        <label class="form-label">Chamber Title <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="name" name="name" value="{!! $chamber->name  !!}" aria-describedby="inputGroupPrepend" required>
        @if ($errors->has('name'))
        <span class="text-danger">{{ $errors->first('name') }}</span>
        @endif
        <span class="text-danger error_name" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label class="form-label">Email <span class="text-danger"></span></label>
        <input type="email" class="form-control" id="email" name="email" value="{!! $chamber->email  !!}" aria-describedby="inputGroupPrepend"  placeholder="Enter Email">
        @if ($errors->has('email'))
        <span class="text-danger">{{ $errors->first('email') }}</span>
        @endif
        <span class="text-danger error_email" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label class="form-label">Phone <span class="text-danger"></span></label>
        <input type="number" class="form-control" id="phone" name="phone" value="{!! $chamber->phone  !!}" aria-describedby="inputGroupPrepend" placeholder="Enter Phone">
        @if ($errors->has('phone'))
        <span class="text-danger">{{ $errors->first('phone') }}</span>
        @endif
        <span class="text-danger error_phone" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label class="form-label">Mobile No <span class="text-danger"></span></label>
        <input type="number" class="form-control" id="mobile_no" name="mobile_no" value="{!! $chamber->mobile_no  !!}" aria-describedby="inputGroupPrepend" placeholder="Enter Mobile No">
        @if ($errors->has('mobile_no'))
        <span class="text-danger">{{ $errors->first('mobile_no') }}</span>
        @endif
        <span class="text-danger error_mobile_no" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label class="form-label">Whatsapp No <span class="text-danger"></span></label>
        <input type="number" class="form-control" id="whatsapp_no" name="whatsapp_no" value="{!! $chamber->whatsapp_no  !!}" aria-describedby="inputGroupPrepend" placeholder="Whatsapp No">
        @if ($errors->has('whatsapp_no'))
        <span class="text-danger">{{ $errors->first('whatsapp_no') }}</span>
        @endif
        <span class="text-danger error_whatsapp_no" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label class="form-label">Priority <span class="text-danger"></span></label>
        <input type="text" class="form-control" id="priority" name="priority" value="{!! $chamber->priority  !!}" aria-describedby="inputGroupPrepend">
    </div>
    <div class="col-md-12">
        <label class="form-label">Address <span class="text-danger"></span></label>
        <input type="text" class="form-control" id="address" name="address" value="{!! $chamber->address  !!}" aria-describedby="inputGroupPrepend" placeholder="Enter Address">
        @if ($errors->has('address'))
        <span class="text-danger">{{ $errors->first('address') }}</span>
        @endif
        <span class="text-danger error_address" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label class="form-label">Google Map Url <span class="text-danger"></span></label>
        <input type="text" class="form-control" id="google_map_url" name="google_map_url" value="{!! $chamber->google_map_url  !!}" aria-describedby="inputGroupPrepend" placeholder="Enter Google Map Url">
        @if ($errors->has('google_map_url'))
        <span class="text-danger">{{ $errors->first('google_map_url') }}</span>
        @endif
        <span class="text-danger error_google_map_url" style="display: none;">This field is required.</span>
    </div>
</form>
