removed transactions from portal
This commit is contained in:
		
							
								
								
									
										28
									
								
								resources/assets/js/views/portal/transactions.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								resources/assets/js/views/portal/transactions.js
									
									
									
									
										vendored
									
									
								
							| @@ -1,28 +0,0 @@ | ||||
|  | ||||
| /** | ||||
|  * First we will load all of this project's JavaScript dependencies which | ||||
|  * includes Vue and other libraries. It is a great starting point when | ||||
|  * building robust, powerful web applications using Vue and Laravel. | ||||
|  */ | ||||
|  | ||||
| require('./../../bootstrap'); | ||||
|  | ||||
| import Vue from 'vue'; | ||||
|  | ||||
| import Global from './../../mixins/global'; | ||||
|  | ||||
| import Form from './../../plugins/form'; | ||||
| import BulkAction from './../../plugins/bulk-action'; | ||||
|  | ||||
| const app = new Vue({ | ||||
|     el: '#app', | ||||
|  | ||||
|     mixins: [ | ||||
|         Global | ||||
|     ], | ||||
|  | ||||
|     data: function () { | ||||
|         return { | ||||
|         } | ||||
|     } | ||||
| }); | ||||
| @@ -1,6 +1,6 @@ | ||||
| @extends('layouts.portal') | ||||
|  | ||||
| @section('title', trans_choice('general.payments', 1)) | ||||
| @section('title', trans_choice('general.payments', 2)) | ||||
|  | ||||
| @section('content') | ||||
|     <div class="card"> | ||||
| @@ -28,8 +28,8 @@ | ||||
|                     <tr class="row table-head-line"> | ||||
|                         <th class="col-xs-3 col-sm-3">@sortablelink('paid_at', trans('general.date'))</th> | ||||
|                         <th class="col-xs-3 col-sm-3">@sortablelink('amount', trans('general.amount'))</th> | ||||
|                         <th class="col-sm-3 hidden-sm">@sortablelink('category.name', trans_choice('general.categories', 1))</th> | ||||
|                         <th class="col-xs-6 col-sm-3">@sortablelink('payment_method', trans_choice('general.payment_methods', 1))</th> | ||||
|                         <th class="col-sm-3 hidden-sm">@sortablelink('description', trans('general.description'))</th> | ||||
|                     </tr> | ||||
|                 </thead> | ||||
|  | ||||
| @@ -38,8 +38,8 @@ | ||||
|                         <tr class="row align-items-center border-top-1"> | ||||
|                             <td class="col-xs-3 col-sm-3"><a class="text-success" href="{{ route('portal.payments.show', $item->id) }}">@date($item->paid_at)</a></td> | ||||
|                             <td class="col-xs-3 col-sm-3">@money($item->amount, $item->currency_code, true)</td> | ||||
|                             <td class="col-sm-3 hidden-sm">{{ $item->category ? $item->category->name : trans('general.na') }}</td> | ||||
|                             <td class="col-xs-6 col-sm-3">{{ $payment_methods[$item->payment_method] }}</td> | ||||
|                             <td class="col-sm-3 hidden-sm">{{ $item->description }}</td> | ||||
|                         </tr> | ||||
|                     @endforeach | ||||
|                 </tbody> | ||||
|   | ||||
| @@ -1,25 +1,16 @@ | ||||
| @extends('layouts.portal') | ||||
|  | ||||
| @section('title', trans_choice('general.invoices', 1)) | ||||
| @section('title', trans_choice('general.payments', 1)) | ||||
|  | ||||
| @section('content') | ||||
|     <div class="card"> | ||||
|         <div class="card-header"> | ||||
|             <h3 class="m-0 float-right">{{ $payment->category->name }}</h3> | ||||
|             <h3 class="m-0 float-right">@date($payment->paid_at)</h3> | ||||
|         </div> | ||||
|  | ||||
|         <div class="card-body"> | ||||
|             <div class="row mb-4"> | ||||
|                 <div class="col-md-7"> | ||||
|                     <h2>{{ $payment->contact->name }}</h2> | ||||
|                 </div> | ||||
|                 <div class="col-md-5"> | ||||
|                     <h2 class="float-right">{{ trans('general.date') }}: @date($payment->paid_at)</h2> | ||||
|                 </div> | ||||
|             </div> | ||||
|  | ||||
|             <div class="row"> | ||||
|                 <div class="col-md-4"> | ||||
|                 <div class="col-md-6"> | ||||
|                     <div class="card"> | ||||
|                         <div class="card-header"> | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.from') }}:</a> <a class="text-xs long-texts"> {{ setting('company.name') }}</a> | ||||
| @@ -27,20 +18,20 @@ | ||||
|  | ||||
|                         <div class="card-body d-grid"> | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.address') }}:</a> | ||||
|                             <a class="text-xs long-texts"> {{ setting('company.address') }}</a> | ||||
|                             <a class="text-xs long-texts">{{ setting('company.address') }}</a> | ||||
|                             <div class="dropdown-divider"></div> | ||||
|  | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.phone') }}:</a> | ||||
|                             <a class="text-xs long-texts"> {{ setting('company.phone') }}</a> | ||||
|                             <a class="text-xs long-texts">{{ setting('company.phone') }}</a> | ||||
|                             <div class="dropdown-divider"></div> | ||||
|  | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.email') }}:</a> | ||||
|                             <a class="text-xs long-texts"> {{ setting('company.email') }}</a> | ||||
|                             <a class="text-xs long-texts">{{ setting('company.email') }}</a> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="col-md-4"> | ||||
|                 <div class="col-md-6"> | ||||
|                     <div class="card"> | ||||
|                         <div class="card-header"> | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.to') }}:</a> <a class="text-xs long-texts"> {{ $payment->contact->name }}</a> | ||||
| @@ -48,23 +39,15 @@ | ||||
|  | ||||
|                         <div class="card-body d-grid"> | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.address') }}:</a> | ||||
|                             <a class="text-xs long-texts"> {{ $payment->contact->address }}</a> | ||||
|                             <a class="text-xs long-texts">{{ $payment->contact->address }}</a> | ||||
|                             <div class="dropdown-divider"></div> | ||||
|  | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.phone') }}:</a> | ||||
|                             <a class="text-xs long-texts"> {{ $payment->contact->phone }}</a> | ||||
|                             <a class="text-xs long-texts">{{ $payment->contact->phone }}</a> | ||||
|                             <div class="dropdown-divider"></div> | ||||
|  | ||||
|                             <a class="text-sm font-weight-600">{{ trans('general.email') }}:</a> | ||||
|                             <a class="text-xs long-texts"> {{ $payment->contact->email }}</a> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="col-md-4"> | ||||
|                     <div class="card"> | ||||
|                         <div class="card-header"> | ||||
|                             <a class="text-sm font-weight-600">{{ trans('invoices.payment_due') }}:</a> <a class="text-xs long-texts"> @date($payment->paid_at)</a> | ||||
|                             <a class="text-xs long-texts">{{ $payment->contact->email }}</a> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 </div> | ||||
| @@ -85,18 +68,16 @@ | ||||
|             <table class="table align-items-center table-flush"> | ||||
|                 <thead class="thead-light"> | ||||
|                     <tr> | ||||
|                         <th>{{ trans_choice('general.categories', 1) }}</th> | ||||
|                         <th>{{ trans_choice('general.payment_methods', 1) }}</th> | ||||
|                         <th>{{ trans('general.reference') }}</th> | ||||
|                         <th>{{ trans('general.amount') }}</th> | ||||
|                         <th>{{ trans_choice('general.payment_methods', 1) }}</th> | ||||
|                         <th>{{ trans('general.description') }}</th> | ||||
|                     </tr> | ||||
|                 </thead> | ||||
|                 <tbody> | ||||
|                     <tr> | ||||
|                         <td>{{ $payment->category->name }}</td> | ||||
|                         <td>{{ $payment_methods[$payment->payment_method] }}</td> | ||||
|                         <td>{{ $payment->reference }}</td> | ||||
|                         <td>@money($payment->amount, $payment->currency_code, true)</td> | ||||
|                         <td>{{ $payment_methods[$payment->payment_method] }}</td> | ||||
|                         <td>{{ $payment->description }}</td> | ||||
|                     </tr> | ||||
|                 </tbody> | ||||
|             </table> | ||||
|   | ||||
| @@ -1,59 +0,0 @@ | ||||
| @extends('layouts.portal') | ||||
|  | ||||
| @section('title', trans_choice('general.transactions', 2)) | ||||
|  | ||||
| @section('content') | ||||
|     <div class="card"> | ||||
|         <div class="card-header border-bottom-0"> | ||||
|             {!! Form::open([ | ||||
|                 'route' => 'portal.transactions.index', | ||||
|                 'role' => 'form', | ||||
|                 'method' => 'GET', | ||||
|                 'class' => 'mb-0' | ||||
|             ]) !!} | ||||
|  | ||||
|                 <div class="row"> | ||||
|                     <div class="col-12 card-header-search card-header-space"> | ||||
|                         <span class="table-text hidden-lg card-header-search-text">{{ trans('general.search') }}:</span> | ||||
|                         <akaunting-search></akaunting-search> | ||||
|                     </div> | ||||
|                 </div> | ||||
|  | ||||
|             {!! Form::close() !!} | ||||
|         </div> | ||||
|  | ||||
|         <div class="table-responsive"> | ||||
|             <table class="table table-flush"> | ||||
|                 <thead class="thead-light"> | ||||
|                     <tr class="row table-head-line"> | ||||
|                         <th class="col-md-2 hidden-md">@sortablelink('paid_at', trans('general.date'))</th> | ||||
|                         <th class="col-xs-5 col-sm-3 col-md-2">@sortablelink('account.name', trans('accounts.account_name'))</th> | ||||
|                         <th class="col-xs-3 col-sm-3 col-md-2">@sortablelink('type', trans_choice('general.types', 1))</th> | ||||
|                         <th class="col-sm-3 col-md-2 hidden-sm">@sortablelink('category.name', trans_choice('general.categories', 1))</th> | ||||
|                         <th class="col-md-2 hidden-md">@sortablelink('description', trans('general.description'))</th> | ||||
|                         <th class="col-xs-4 col-sm-3 col-md-2">@sortablelink('amount', trans('general.amount'))</th> | ||||
|                     </tr> | ||||
|                 </thead> | ||||
|  | ||||
|                 <tbody> | ||||
|                     @foreach($transactions as $item) | ||||
|                         <tr class="row align-items-center border-top-1"> | ||||
|                             <td class="col-md-2 hidden-md">@date($item->date)</td> | ||||
|                             <td class="col-xs-5 col-sm-3 col-md-2">{{ $item->account->name }}</td> | ||||
|                             <td class="col-xs-3 col-sm-3 col-md-2">{{ trans_choice('general.payments', 1) }}</td> | ||||
|                             <td class="col-sm-3 col-md-2 hidden-sm">{{ $item->category->name }}</td> | ||||
|                             <td class="col-md-2 hidden-md">{{ $item->description }}</td> | ||||
|                             <td class="col-xs-4 col-sm-3 col-md-2">@money($item->amount, $item->currency_code, true)</td> | ||||
|                         </tr> | ||||
|                     @endforeach | ||||
|                 </tbody> | ||||
|             </table> | ||||
|         </div> | ||||
|  | ||||
|         <div class="card-footer table-action"></div> | ||||
|     </div> | ||||
| @endsection | ||||
|  | ||||
| @push('scripts_start') | ||||
|     <script src="{{ asset('public/js/customers/transactions.js?v=' . version('short')) }}"></script> | ||||
| @endpush | ||||
		Reference in New Issue
	
	Block a user