
@extends('admin.layouts.app')

@section('header-script')
    @include('admin.layouts.forms-header-script')
@endsection


@section('content')
   <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                       
                        <h4 class="page-title">Contact Information </h4>
                        
                          <span class="clearfix"></span>
                        
                        @foreach (['danger', 'warning', 'success', 'info'] as $key)
                            @if(Session::has($key))
                                 <p class="alert alert-{{ $key }}"><i class="fa fa-info-circle" style="color: #fe6271;"></i> {{ Session::get($key) }}</p>
                            @endif
                        @endforeach
                    </div>
                </div>
 
                  
                <div class="row">
                    <div class="col-sm-12">
                        <div class="card-box">
                            
                            

                            <h4 class="header-title m-t-0 m-b-30">  School Contact Information</h4>

                             <div class="row">
                                <div class="col-lg-11">
                                    <div class="p-20">
                                      {!! Form::open(['url' => 'admin/update_contact','class'=>'form-horizontal','enctype'=>'multipart/form-data','files'=>true ]) !!}
                                  {{ csrf_field() }}
                                   
                                           
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">Phone Number</label>
                                                <div class="col-lg-4">
                                                    <input class="form-control" name="phone"  value="{{$contact->phone}}" type="text" required="">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">Phone Number Two</label>
                                                <div class="col-lg-4">
                                                    <input class="form-control" name="phone_two"  value="{{$contact->phone_two}}" type="text" required="">
                                                </div>
                                            </div>
                                              <div class="form-group">
                                                <label class="col-lg-4 control-label">Email Address</label>
                                                <div class="col-lg-5">
                                                    <input class="form-control" name="email" value="{{$contact->email}}"  type="email" required="">
                                                </div>
                                            </div>
                                            
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">Website Address</label>
                                                <div class="col-lg-5">
                                                    <input class="form-control" name="website" value="{{$contact->website}}"  type="text" required="">
                                                </div>
                                            </div>
                                            
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">School Address</label>
                                                <div class="col-lg-6">
                                                    <input class="form-control" name="address" value="{{$contact->address}}" type="text" required="">
                                                </div>
                                            </div>
                                              <div class="form-group">
                                                <label class="col-lg-4 control-label">Facebook Page Url</label>
                                                <div class="col-lg-7">
                                                    <input class="form-control" name="facebook" value="{{$contact->facebook}}" type="text" >
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Twitter Page Url</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="twitter" value="{{$contact->twitter}}" type="text" >
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Ytube Page Url</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="ytube" value="{{$contact->ytube}}" type="text" >
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label"></label>
                                                <div class="col-lg-3">
                                                     <button type="submit" class="btn btn-custom btn-bordred waves-effect waves-light w-md m-b-5 pull-left"><i class="fa  fa-save"></i> Update</button>
                                    
                                                </div>
                                            </div>
                                       
                                     
                                {!! Form::close() !!}

                                    </div>

                                </div><!-- end col -->

                            </div><!-- end row -->
                        </div>
                    </div><!-- end col -->
                </div>
                <!-- end row -->
 @endsection

 @section('footer-script')
     @include('admin.layouts.form-elements-footer-script')
 @endsection