<div class="col-md-7">
    <div class="form-group">
        <label for="title">Title</label>
        {{Form::text('title', null, ['class'=> 'form-control', 'placeholder' => 'Enter Title','id' => 'title'])}}
        @include('backend.includes.single_input_validation', ['field' => 'title'])
    </div>
    <div class="form-group">
        <label for="title">Slug</label>
        {{Form::text('slug', null, ['class'=> 'form-control', 'placeholder' => 'Enter Slug','id' => 'slug'])}}
        @include('backend.includes.single_input_validation', ['field' => 'slug'])
    </div>

    <div class="form-group">
        <label for="description">Description</label>
        {{Form::textarea('description', null, ['class'=> 'form-control', 'placeholder' => 'Enter Description of Program'])}}
        @include('backend.includes.single_input_validation', ['field' => 'description'])
    </div>
    <div class="form-group">
        <label for="location">Location</label>
        {{Form::text('location', null, ['class'=> 'form-control', 'placeholder' => 'Enter Location',])}}
        @include('backend.includes.single_input_validation', ['field' => 'location'])
    </div>
    <div class="form-group">
        <label for="date">Date</label>
        {{Form::date('date', null, ['class'=> 'form-control', 'placeholder' => 'Enter Date',])}}
        @include('backend.includes.single_input_validation', ['field' => 'date'])
    </div>
    <div class="form-group">
        <label for="title">Feature Image</label>
        {{Form::file('photo', null, ['class'=> 'form-control'])}}
        @include('backend.includes.single_input_validation', ['field' => 'photo'])
        <br/>
        @if($page == 'edit')
            <img src="{{asset($image_path . '/' . $data['row']->image)}}" alt="{{$data['row']->image}}" width="100" height="100">
            @endif
    </div>
    <div class="form-group">
        <label for="title">Events Image</label>
        @if($page == 'edit')
            <input type="file" name="event_image[]" multiple>
            @if(count($data['row']->images) > 0)
            <table class="table table-bordered">
                <thead>
                <th>Image</th>
                <th>Action</th>
                </thead>
                <tbody>
                @foreach($data['row']->images as $image)
                <tr>
                    <td> <img src="{{asset($image_path . '/' . $image->event_image)}}" alt="{{$image->event_image}}" width="100" height="100"></td>
                <td>
                   <button type="button" class="btn btn-danger deleteBtn" id="{{$image->id}}" onclick="return confirm('Are You Sure Do You Want To Delete This Data ?')">Delete</button>
                </td>
                </tr>
                @endforeach
                </tbody>
            </table>
                @endif

        @else
            <input type="file" name="event_image[]" multiple>
        @endif
    </div>
  
    <div class="form-group">
        <label for="video">Video (IFrame)</label>
        {{Form::textarea('video', null, ['class'=> 'form-control', 'placeholder' => 'Enter Video Iframe','rows' => 5])}}
        @include('backend.includes.single_input_validation', ['field' => 'video'])
    </div>
    <div class="form-group">
        <label for="status">Status</label>
        {{Form::radio('status', 1, true)}} Active
        {{Form::radio('status', 0)}} De active
    </div>
</div>
