
@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">School  Schedules </h4>
                           @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-8 col-sm-offset-2">
                        <div class="card-box">
                             

                            <h4 class="header-title m-t-0 m-b-30">Change  Schedules</h4>

                            <div class="row">
                                <div class="col-lg-11">
                                    <div class="p-20">
                                      {!! Form::open(['url' => 'admin/update_schedule','class'=>'form-horizontal','enctype'=>'multipart/form-data','files'=>true ]) !!}
                                  {{ csrf_field() }}
                                   
                                           
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">Saturday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="saturday" value="{{ $schedule->saturday }}"  type="text" required="">
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Sunday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="sunday" value="{{ $schedule->sunday }}"  type="text" required="">
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Monday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="monday" value="{{ $schedule->monday }}"  type="text" required="">
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Tuesday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="tuesday" value="{{ $schedule->tuesday }}"  type="text" required="">
                                                </div>
                                            </div>
                                           
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Wednesday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="wednesday" value="{{ $schedule->wednesday }}"  type="text" required="">
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Thursday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="thursday" value="{{ $schedule->thursday }}"  type="text" required="">
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Friday</label>
                                                <div class="col-lg-8">
                                                    <input class="form-control" name="friday" value="{{ $schedule->friday }}"  type="text" required="">
                                                </div>
                                            </div>
                                              
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label"></label>
                                                <div class="col-lg-7">
                                                     <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