@extends('layouts.admin.app')

@section('content')

    <main id="main" class="main">
        @if( Session::get('permissions.user_type') == 'A' )
        <div class="ml-auto text-right">
            <a href="{{ route('admin.product') }}" class="btn btn-outline-info">Back</a>
        </div>
        <form action="{{route('admin.status-update')}}" method="post">
        	@csrf
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">AOF Product Status Is Block</legend>
                @if ($aof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="aof" id="aof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="aof" id="aof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="aof" id="aof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="aof" id="aof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">BOF Product Status Is Block</legend>
                @if ($bof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="bof" id="bof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="bof" id="bof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="bof" id="bof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="bof" id="bof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">COF Product Status Is Block</legend>
                @if ($cof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="cof" id="cof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="cof" id="cof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="cof" id="cof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="cof" id="cof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">DOF Product Status Is Block</legend>
                @if ($dof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="dof" id="dof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="dof" id="dof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="dof" id="dof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="dof" id="dof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">HOF Product Status Is Block</legend>
                @if ($hof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="hof" id="hof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="hof" id="hof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="hof" id="hof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="hof" id="hof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">KOF Product Status Is Block</legend>
                @if ($kof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="kof" id="kof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="kof" id="kof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="kof" id="kof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="kof" id="kof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">MOF Product Status Is Block</legend>
                @if ($mof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="mof" id="mof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="mof" id="mof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="mof" id="mof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="mof" id="mof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <fieldset class="row mb-3">
               <legend class="col-form-label col-sm-2 pt-0">POF Product Status Is Block</legend>
                @if ($pof == 'Y')
	                <div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="pof" id="pof1" value="Y" checked>
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="pof" id="pof0" value="N">
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @else
	            	<div class="col-sm-10">
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="pof" id="pof1" value="Y">
		                  <label class="form-check-label" for="gridRadios1">
		                    Yes
		                  </label>
		                </div>
		                <div class="form-check">
		                  <input class="form-check-input" type="radio" name="pof" id="pof0" value="N" checked>
		                  <label class="form-check-label" for="gridRadios2">
		                    No
		                  </label>
		                </div>
	              	</div>
	            @endif  	
            </fieldset>
            <button id="status-button" type="submit" class="btn btn-lg btn-info btn-block">
                Submit
            </button>
            <input type="hidden" name="id" value="{{ $id }}" />
        </form>    
        @endif    
        
    </main><!-- End #main -->
            
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>

@endsection
