@extends('layouts.default') @if(isset($record->id)) @section('title', 'Edit Report') @else @section('title', 'Create Report') @endif @section('content')
@php $dashboard_list = ReportHelper::get_dashboards(); $permission_list = ReportHelper::get_permissions(); @endphp
@if(isset($record->id)) Edit Report @else Create Report @endif
@if(isset($record->id)) {{Breadcrumbs::render('Reports.edit')}} @else {{Breadcrumbs::render('Reports.create')}} @endif
{{ Form::open(array('id' => 'report_config','class'=>'needs-validation','novalidate')) }}
@if(isset($report_id))
{{ \App\Http\Controllers\ReportController::render_chart($report_id) }}
@else
@endif
@if(isset($record->id)) @php $config = json_decode($record->chart_config,true); @endphp @endif
Report Configuration
report_type!='tablebuilder') style="display:none" @endif>
Name Value
Data Source Edit
Chart Type
Datasource
Width
Height {{Form::text('height',@$config['height'],['class'=>'form-control', 'id'=>'height','required'])}}
Show Legend {{Form::radio('show_legend', 'yes')}}{{Form::label('show_legend_label', 'Yes')}} {{Form::radio('show_legend', 'no')}}{{Form::label('show_legend_label', 'No')}}
Theme
Report Name {{Form::text('name',@$record->rep_name,['class'=>'form-control', 'id'=>'name','required'])}}
Caption {{Form::text('caption',@$config['caption'],['class'=>'form-control', 'id'=>'caption','required'])}}
Number Suffix {{Form::text('numberSuffix',@$config['numberSuffix'],['class'=>'form-control', 'id'=>'numberSuffix'])}}
Dashboard
Animation @if(@$config['animation']=="2d") {{Form::radio('animation', '2d','selected')}} @else {{Form::radio('animation', '2d')}} @endif {{Form::label('show_legend_label', '2D')}} @if(@$config['animation']=="3d") {{Form::radio('animation', '3d','selected')}} @else {{Form::radio('animation', '3d')}} @endif {{Form::label('show_legend_label', '3D')}}
Group Access {{Form::text('group_access',@$record->group_access,['class'=>'form-control', 'id'=>'group_access'])}}
User Access {{Form::text('user_access',@$record->user_access,['class'=>'form-control', 'id'=>'user_access'])}}
{{Form::submit('Save Config', array('name'=>'submit', 'id'=>'submit','class'=>'btn btn-primary background_color'))}} {{ Form::close() }}
@stop