mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Some new code.
This commit is contained in:
		
							
								
								
									
										77
									
								
								resources/views/accounts/show.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								resources/views/accounts/show.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,77 @@ | ||||
| @extends('layouts.default') | ||||
| @section('content') | ||||
| {{-- Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $account) --}} | ||||
| <div class="row"> | ||||
|     <div class="col-lg-8 col-md-6 col-sm-12"> | ||||
|         <div class="panel panel-default"> | ||||
|             <div class="panel-heading"> | ||||
|                 <i class="fa fa-fw {{$subTitleIcon}} fa-fw"></i> {{{$account->name}}} | ||||
|  | ||||
|  | ||||
|                 <!-- ACTIONS MENU --> | ||||
|                 <div class="pull-right"> | ||||
|                     <div class="btn-group"> | ||||
|                         <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"> | ||||
|                             Actions | ||||
|                             <span class="caret"></span> | ||||
|                         </button> | ||||
|                         <ul class="dropdown-menu pull-right" role="menu"> | ||||
|                             <li><a href="{{route('accounts.edit',$account->id)}}"><i class="fa fa-pencil fa-fw"></i> Edit</a></li> | ||||
|                             <li><a href="{{route('accounts.delete',$account->id)}}"><i class="fa fa-trash fa-fw"></i> Delete</a></li> | ||||
|                         </ul> | ||||
|                     </div> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class="panel-body"> | ||||
|                 <div id="overview-chart"></div> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class="col-lg-4 col-md-6 col-sm-12"> | ||||
|         <!-- time based navigation --> | ||||
|         @include('partials.date_nav') | ||||
|         <div class="panel panel-default"> | ||||
|             <div class="panel-heading"> | ||||
|                 <i class="fa fa-clock-o fa-fw"></i> View options for {{{$account->name}}} | ||||
|             </div> | ||||
|             <div class="panel-body"> | ||||
|                 <p> | ||||
|                     @if($range == 'all') | ||||
|                         <a href="{{route('accounts.show',$account->id)}}/session" class="btn btn-default">Stick to date-range</a> | ||||
|                     @else | ||||
|                         <a href="{{route('accounts.show',$account->id)}}/all" class="btn btn-default">Show all transactions</a> | ||||
|                     @endif | ||||
|                 </p> | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
|  | ||||
| <div class="row"> | ||||
|     <div class="col-lg-12 col-md-12 col-sm-12"> | ||||
|         <div class="panel panel-default"> | ||||
|             <div class="panel-heading"> | ||||
|                 <i class="fa fa-repeat fa-fw"></i> Transactions | ||||
|             </div> | ||||
|             <div class="panel-body"> | ||||
|                 @include('list.journals-full') | ||||
|             </div> | ||||
|     </div> | ||||
| </div> | ||||
|  | ||||
|  | ||||
|  | ||||
| @stop | ||||
| @section('scripts') | ||||
| <script type="text/javascript"> | ||||
|     var accountID = {{{$account->id}}}; | ||||
|     var view = '{{{$range}}}'; | ||||
|     var currencyCode = '{{Amount::getCurrencyCode()}}'; | ||||
| </script> | ||||
| <!-- load the libraries and scripts necessary for Google Charts: --> | ||||
| <script type="text/javascript" src="https://www.google.com/jsapi"></script> | ||||
| <script type="text/javascript" src="js/gcharts.options.js"></script> | ||||
| <script type="text/javascript" src="js/gcharts.js"></script> | ||||
| <script type="text/javascript" src="js/accounts.js"></script> | ||||
| @stop | ||||
							
								
								
									
										120
									
								
								resources/views/list/journals-full.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										120
									
								
								resources/views/list/journals-full.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,120 @@ | ||||
| @if(is_object($journals) && method_exists($journals, 'links')) | ||||
| {{$journals->links()}} | ||||
| @endif | ||||
| <table class="table table-striped table-bordered"> | ||||
|     <tr> | ||||
|         <th colspan="2"> </th> | ||||
|         <th>Description</th> | ||||
|         <th>Amount</th> | ||||
|         <th>Date</th> | ||||
|         <th>From</th> | ||||
|         <th>To</th> | ||||
|         @if(!isset($hideBudget) || (isset($hideBudget) && $hideBudget=== false)) | ||||
|             <th><i class="fa fa-tasks fa-fw" title="Budget"></i></th> | ||||
|         @endif | ||||
|         @if(!isset($hideCategory) || (isset($hideCategory) && $hideCategory=== false)) | ||||
|             <th><i class="fa fa-bar-chart fa-fw" title="Category"></i></th> | ||||
|         @endif | ||||
|         @if(!isset($hideBill) || (isset($hideBill) && $hideBill=== false)) | ||||
|             <th><i class="fa fa-fw fa-rotate-right" title="Bill"></i></th> | ||||
|         @endif | ||||
|     </tr> | ||||
|     @foreach($journals as $journal) | ||||
|     @if(!isset($journal->transactions[1]) || !isset($journal->transactions[0])) | ||||
|         <tr> | ||||
|             <td> | ||||
|                 <div class="btn-group btn-group-xs"> | ||||
|                     <a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a> | ||||
|                 </div> | ||||
|             </td> | ||||
|             <td> </td> | ||||
|             <td>{{{$journal->description}}}</td> | ||||
|             <td colspan="7"><em>Invalid journal: Found {{$journal->transactions()->count()}} transaction(s)</td> | ||||
|         </tr> | ||||
|     @else | ||||
|     <tr> | ||||
|         <td> | ||||
|             <div class="btn-group btn-group-xs"> | ||||
|                 <a href="{{route('transactions.edit',$journal->id)}}" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-pencil"></span></a> | ||||
|                 <a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-xs btn-danger"><span class="glyphicon glyphicon-trash"></span></a> | ||||
|             </div> | ||||
|         </td> | ||||
|         <td> | ||||
|             @if($journal->transactiontype->type == 'Withdrawal') | ||||
|                 <span class="glyphicon glyphicon-arrow-left" title="Withdrawal"></span> | ||||
|             @endif | ||||
|             @if($journal->transactiontype->type == 'Deposit') | ||||
|                 <span class="glyphicon glyphicon-arrow-right" title="Deposit"></span> | ||||
|             @endif | ||||
|             @if($journal->transactiontype->type == 'Transfer') | ||||
|                 <span class="glyphicon glyphicon-resize-full" title="Transfer"></span> | ||||
|             @endif | ||||
|             @if($journal->transactiontype->type == 'Opening balance') | ||||
|                 <span class="glyphicon glyphicon-ban-circle" title="Opening balance"></span> | ||||
|             @endif | ||||
|         </td> | ||||
|         <td> | ||||
|             <a href="{{route('transactions.show',$journal->id)}}" title="{{{$journal->description}}}">{{{$journal->description}}}</a> | ||||
|         </td> | ||||
|         <td> | ||||
|             @if($journal->transactiontype->type == 'Withdrawal') | ||||
|             <span class="text-danger">{{Amount::formatTransaction($journal->transactions[1],false)}}</span> | ||||
|             @endif | ||||
|             @if($journal->transactiontype->type == 'Deposit') | ||||
|             <span class="text-success">{{Amount::formatTransaction($journal->transactions[1],false)}}</span> | ||||
|             @endif | ||||
|             @if($journal->transactiontype->type == 'Transfer') | ||||
|             <span class="text-info">{{Amount::formatTransaction($journal->transactions[1],false)}}</span> | ||||
|             @endif | ||||
|         </td> | ||||
|         <td> | ||||
|             {{$journal->date->format('j F Y')}} | ||||
|         </td> | ||||
|         <td> | ||||
|             @if($journal->transactions[0]->account->accounttype->description == 'Cash account') | ||||
|                 <span class="text-success">(cash)</span> | ||||
|             @else | ||||
|                 <a href="{{route('accounts.show',$journal->transactions[0]->account_id)}}">{{{$journal->transactions[0]->account->name}}}</a> | ||||
|             @endif | ||||
|         </td> | ||||
|         <td> | ||||
|             @if($journal->transactions[1]->account->accounttype->description == 'Cash account') | ||||
|                 <span class="text-success">(cash)</span> | ||||
|             @else | ||||
|                 <a href="{{route('accounts.show',$journal->transactions[1]->account_id)}}">{{{$journal->transactions[1]->account->name}}}</a> | ||||
|             @endif | ||||
|         </td> | ||||
|         @if(!isset($hideBudget) || (isset($hideBudget) && $hideBudget=== false)) | ||||
|             <td> | ||||
|             <?php $budget = isset($journal->budgets[0]) ? $journal->budgets[0] : null; ?> | ||||
|                 @if($budget) | ||||
|                     <a href="{{route('budgets.show',$budget->id)}}">{{{$budget->name}}}</a> | ||||
|                 @endif | ||||
|             </td> | ||||
|         @endif | ||||
|         @if(!isset($hideCategory) || (isset($hideCategory) && $hideCategory=== false)) | ||||
|         <td> | ||||
|         <?php $category = isset($journal->categories[0]) ? $journal->categories[0] : null; ?> | ||||
|             @if($category) | ||||
|                 <a href="{{route('categories.show',$category->id)}}">{{{$category->name}}}</a> | ||||
|             @endif | ||||
|         </td> | ||||
|         @endif | ||||
|         @if(!isset($hideBill) || (isset($hideBill) && $hideBill=== false)) | ||||
|         <td> | ||||
|             @if($journal->bill) | ||||
|                 <a href="{{route('bills.show',$journal->bill_id)}}">{{{$journal->bill->name}}}</a> | ||||
|             @endif | ||||
|         </td> | ||||
|         @endif | ||||
|  | ||||
|  | ||||
|     </tr> | ||||
|         @endif | ||||
|  | ||||
|     @endforeach | ||||
| </table> | ||||
|  | ||||
| @if(is_object($journals) && method_exists($journals, 'links')) | ||||
| {{$journals->links()}} | ||||
| @endif | ||||
		Reference in New Issue
	
	Block a user