53 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <div id="widgets-incomes-by-category" class="{{ $config->width }}">
 | |
|     <div class="card">
 | |
|         <div class="card-header">
 | |
|             <div class="row align-items-center">
 | |
| 
 | |
|                 <div class="col-6 text-nowrap">
 | |
|                     <h4 class="mb-0">{{ trans('dashboard.incomes_by_category') }}</h4>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="col-6 hidden-sm">
 | |
|                     <span class="float-right">
 | |
|                         <div class="dropdown">
 | |
|                             <a class="btn btn-sm items-align-center py-2 mr-0 shadow-none--hover" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
 | |
|                                 <i class="fa fa-ellipsis-v text-muted"></i>
 | |
|                             </a>
 | |
| 
 | |
|                             <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
 | |
|                                 {!! Form::button(trans('general.edit'), array(
 | |
|                                     'type'    => 'button',
 | |
|                                     'class'   => 'dropdown-item',
 | |
|                                     'title'   => trans('general.edit'),
 | |
|                                     '@click'  => 'onEditWidget(' . $config->widget->id . ')'
 | |
|                                 )) !!}
 | |
|                                 <div class="dropdown-divider"></div>
 | |
|                                 {!! Form::deleteLink($config->widget, 'common/widgets') !!}
 | |
|                             </div>
 | |
|                         </div>
 | |
|                     </span>
 | |
|                 </div>
 | |
| 
 | |
|             </div>
 | |
|         </div>
 | |
| 
 | |
|         <div class="card-body" id="income-category-doughnut">
 | |
|             <div class="dashboard-categories">
 | |
|                 {!! $donut_incomes->container() !!}
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| </div>
 | |
| 
 | |
| @push('charts')
 | |
|     <script>
 | |
|         var income_category_doughnut = new Vue({
 | |
|             el: '#income-category-doughnut',
 | |
|         });
 | |
|     </script>
 | |
| @endpush
 | |
| 
 | |
| @push('body_scripts')
 | |
|     {!! $donut_incomes->script() !!}
 | |
| @endpush
 |