@include("messages")
<?php
$required = "";
$size = Config::get('params.best_video_image_size');

?>
<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Title') !!}
            {!! Form::text('title', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>

    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Tagline') !!}
            {!! Form::text('tagline', null , array('class' => 'form-control',$required) ) !!}
        </div>
    </div>
</div>
<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            {!! Form::label('Publish Date') !!}
            {!! Form::text('publish_date', $date , array('class' => 'form-control pickadate2',$required) ) !!}

        </div> 
    </div>
    <div class="col-sm-6">
        <div class="form-group">
<!--            <video controls preload="auto" src="" width="100%"></video>'-->
                {!! Form::label('video') !!}
                {!! Form::file('file', null,array('class'=>'form-control')) !!}
        </div>
    </div>
    
    

</div>

 <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    {!! Form::label('meta description') !!}
                    {!! Form::textarea('meta_description', null, ['class'=>'form-control', 'rows' => 3, 'cols' => 3, 'style' => '']) !!}
                </div>
            </div>
 </div>

<div class="card-content collapse show">
    <div class="row" >
        <div class="col-md-12 col-xs-12 col-lg-12">
            <div class="form-group " >

                {!! Form::label('Description') !!}    
                {!! Form::textarea('description', null, ['class'=>'form-control mb-20 editor','id'=>'ckview','rows' => 15, 'cols' => 80]) !!}

            </div>
        </div> 
    </div>

</div>
<div class="row">
            <div class="col-sm-6">
                <div class="d-flex justify-content-start flex-wrap">
                    <div class="custom-control custom-switch custom-switch-success mr-2 mb-1">
                        <p class="mb-0">Status</p>
                        <input type="checkbox" 

                               @if(isset($model->status) && $model->status==1)
                               checked 
                               @endif
                               class="custom-control-input" name="status" id="status" value="1">
                               <label class="custom-control-label" for="status">Status</label>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    {!! Form::label('image') !!}
                    {!! Form::file('image', null,array('class'=>'form-control')) !!}
                    <br clear="all"/>
                    Best Image Size(<?php echo $size; ?>)
                </div>
            </div>
        </div>

<br clear="all"/>
<div class="row">
    <div class="col-md-8">
        <button type="submit" class="btn btn-primary mr-1 mb-1 waves-effect waves-light">Save</button>
        <a href="{{url('admin/videos')}}" class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">Cancel</a>
    </div>
</div>
