Sindbad~EG File Manager
<!-- Created by Saravanan On 2017 Nov 14 -->
@extends('poll.layout')
@section('title')
<title>Poll View form</title>
@stop
@section('scriptTop')
{{-- HTML::script('js/jquery.validate.min.js') --}}
{{-- <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script> --}}
{{-- HTML::script('/js/morris-0.4.1.min.js') --}}
{{ HTML::script('/js/raphael-min.js') }}
{{ HTML::script('/js/morris.js') }}
@stop
@section('css')
{{ HTML::style('/css/morris.css') }}
{{-- HTML::style('/css/polls.css') --}}
@stop
@section('content')
<h1><center><b></b></center></h1>
{{ Form::open(array('url'=>''))}}
<div style="background-color:#121611;color:white;padding:1px;">
</div>
<div class="form-group">
<div class="container">
<div class="row">
<div class="col-sm-12 form-group">
<b>Title:</b>
{{ Form::label('title ',$poll->title) }}
</div>
</div>
<div class="row">
<div class="col-sm-12 form-group">
<b>Description:</b>
{{ Form::label('description',$poll->description) }}
</div>
</div>
<div class="row">
<div class="col-sm-12 form-group">
<b>Start Time:</b>
{{ Form::label('start_at',date('d/m/Y H:i',strtotime($poll->start_at))) }}
</div>
</div>
<div class="row">
<div class="col-sm-12 form-group">
<b>End Time:</b>
{{ Form::label('end_at',date('d/m/Y H:i',strtotime($poll->end_at))) }}
</div>
</div>
<div class="row">
<div class="col-sm-12 form-group">
<br>
</div>
</div>
<h2><b>Options</b></h2>
<div class="row">
<div class ="col-sm-12">
<table class="table table-bordered" id="tblOptions">
<tr>
<thead>
<th>#</th>
<th>Options</th>
</thead>
<tbody>
</tr>
<?php $sno=1; ?>
@foreach ($options as $key => $value)
<tr>
<td>{{ $sno++ }}</td>
<td>{{ $value->option_text}}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="row">
<div class ="col-sm-12 text-center">
<a href="{{ url('/').'/pollindex'}}"class="btn btn-primary" >back</a>
</div>
</div>
</div>
<div id="bar-camp"></div>
</div>
{{ Form::close() }}
<script>
//http://stackoverflow.com/questions/19800089/morris-graphs-have-custom-tooltip-when-hover
if(!jQuery.isEmptyObject({{ $barData }}))
{
Morris.Bar({
element: 'bar-camp',
data: {{ $barData }},
xkey: 'x',
ykeys: ['y'],
xLabels: ['y'],
//lineColors: ['#0b62a4'],
barColors: function (row, series, type) {
if (type === 'bar') {
var red = Math.ceil(255 * row.y / this.ymax);
return 'rgb(' + red + ',0,0)';
}
else {
return '#000';
}
},
labels: ['Percentage'],
parseTime: false,
behaveLikeLine: false
});
}
</script>
@stop
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists