@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

Scroll

@endsection @section('main-content')

Entry

{!! Form::open(['url' => '/admin/scrolls/'.$scroll->scroll_id,'method'=>'put']) !!}
{!! Form::label('name','Content') !!} {!! Form::textarea('scroll_content',$scroll->scroll_content,['class' => 'form-control', 'placeholder'=> 'Content','rows' => 3]) !!} @if ($errors->has('scroll_content')) {!! $errors->first('scroll_content') !!} @endif
{!! Form::label('url','URL') !!} {!! Form::text('scroll_url',$scroll->scroll_url,['class' => 'form-control', 'placeholder'=> 'Enter URL']) !!} @if ($errors->has('scroll_url')) {!! $errors->first('scroll_url') !!} @endif
{!! Form::label('Scroll Position') !!} {!! Form::select('scroll_position', $scroll_position, $scroll->scroll_position, ['class' => 'form-control', 'placeholder' => 'Select scroll position', 'id' => 'scroll_position']) !!} @if ($errors->has('scroll_position')) {!! $errors->first('scroll_position') !!}@endif
@if($scroll->scroll_expire_date) @php($scroll_expire_date = new DateTime($scroll->scroll_expire_date)) @php($scroll_exp_date = $scroll_expire_date->format('Y-m-d')) @php($scroll_exp_time = $scroll_expire_date->format('H:i:s')) @else @php($scroll_exp_date = $scroll_exp_time = '') @endif {!! Form::label('Date') !!} {!! Form::date('scroll_date', $scroll_exp_date, ['class' => 'form-control']) !!}
{!! Form::label('Time') !!} {!! Form::time('scroll_time', $scroll_exp_time, ['class' => 'form-control']) !!}
{!! Form::label('status','Status') !!} {!! Form::select('scroll_is_exist',['1' => 'Active','0' => 'Inactive'],$scroll->scroll_is_exist,['class' =>'form-control']) !!} @if ($errors->has('scroll_is_exist')) {!! $errors->first('scroll_is_exist') !!} @endif
{!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection