@extends('layouts.master')

@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">
        <!-- left column -->
        <div class="col-md-2"></div>
        <div class="col-md-8">
          <!-- general form elements -->
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">Edit Driver  </h3>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form   role="form" method="POST" action="{{ url('/driver/edit') }}">
                        {{ csrf_field() }}
              <div class="box-body">
                
                
                
                <div class="form-group">
                  <label for="exampleInputPassword1">Driver Name - اسـم مجموعة</label>
                  <input type="text" name="name" value="{{$driver->name}}" class="form-control"  placeholder="Driver Name - اسـم مجموعةمجموعة " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">National id - الرقم القومي</label>
                  <input type="text" name="national_id" value="{{$driver->national_id}}" class="form-control"  placeholder="National id - الرقم القومي " required>
                </div>

                <div class="form-group">
                  <label for="exampleInputPassword1">Driver License - رخصة القيادة</label>
                  <input type="text" name="driver_license" value="{{$driver->driver_license}}" class="form-control"  placeholder="Driver License - رخصة القيادة " required>
                </div>

               <input type="hidden" name="driver_id" value="{{$driver->id}}" class="form-control"  placeholder="" required>
              </div>
              <!-- /.box-body -->

              <div class="box-footer">
                <button type="submit" class="btn btn-success">Save</button>
              </div>
            </form>
          </div>    
</div>
         
      </div>

@endsection