@extends('layouts.master')

@section('content')
@if (session()->has('message'))
<div class="row">
        <!-- left column -->
        <div class="col-md-1"></div>
              <div class="col-md-10 alert alert-success alert-dismissible" style="font-size:18px;font-weight:bold;">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                {!! session('message') !!}
              </div>
              <div class="col-md-1"></div>
              </div> 
@endif

<section class="invoice" style="border: 0px solid #f4f4f4; padding:30px" dir="rtl" >

    <div class = "col-md-12" style="padding-bottom:20px"> 
         <div  style="font-size:25px; font-weight:bold ;text-align: center;">
        Supervisor Supplier List
        </div>
    </div>
<div style="margin-right:30px; font-size:16px; font-weight:bold; margin-top:10px;text-align: center;">
 {{$suppervisor->name}}
 </div>
</section>
    <br/>

    
    <div class="row" >
        
             
            <form   role="form" method="POST" action="{{ url('/suppervisor_supplier_list/edit') }}">
                        {{ csrf_field() }}
          
                 <div class="col-md-1" ></div>                       
                <div class="col-md-10" style="padding: 29px;">

                  @foreach ( $suppliers as $suplier) 
                          
                    <div class="form-group col-md-4" style="text-align:left; font-size:18px;font-weight:bold">
                    <label>
                      <input type="checkbox" class="flat-red" id="{{$suplier->id}}" name="{{$suplier->id}}" value="{{$suplier->id}}"  @if($suplier->check ) checked @endif >
                      {{$suplier->name}} 
                    </label>
                    </div>
                  @endforeach
                </div>
                <div class="col-md-1"></div> 
              
 
              <div class="box-footer">
                <button type="submit" class="btn btn-success">Save</button>
              </div>

              <input type="hidden" name="user_id" value="{{$suppervisor->id}}" class="form-control"  placeholder="" required>

            </form>
            
            
    </div>  
     


@endsection
