@extends('layouts.masterHome2')

@section('content')

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

<div class="row" style="margin:20px">
<div class="col-md-12" >
      <div class="card card-info">
          <div class="card-header">
            <h3 class="card-title" style="font-size: 20px;font-weight: 900;"> Add  Employee Image </h3>
            
          </div>
          <!-- /.card-header -->
          <!-- form start -->
          <form  role="form" method="POST" action="{{ url('/employee/image_create') }}" enctype="multipart/form-data" >
                        {{ csrf_field() }}
          <div class="box-body">
            <div class="card-body row">

            
                <div class="form-group col-md-4">
                  <label for="exampleInputPassword1">ارفاق صورة شخصية  </label>
                  <input type="file" class="form-control" name='image' id="image" accept="image/*" required>
                </div>
                <input type="hidden" class="form-control" name='employee_id' id="employee_id" value="{{$employee_id}}">
                
              </div>

              <div class="card-footer">
                  <button type="submit" class="btn btn-info">Add</button>
                </div> 
          </div>

          </form>
      </div>


    </div>
  </div>





@endsection