| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  | {% extends "./layout/default" %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% block breadcrumbs %}
 | 
					
						
							|  |  |  |     {{ Breadcrumbs.render }}
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block content %}
 | 
					
						
							|  |  |  |     <div class="row">
 | 
					
						
							| 
									
										
										
										
											2018-05-23 12:36:12 +02:00
										 |  |  |         <form class="form-horizontal" action="{{ route('import.job.configuration.post',[importJob.key]) }}" method="post">
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |             <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
 | 
					
						
							| 
									
										
										
										
											2018-06-23 10:55:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |             <div class="col-lg-12 col-md-12 col-sm-12">
 | 
					
						
							|  |  |  |                 <div class="box box-default">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							|  |  |  |                         <h3 class="box-title">{{ trans('import.job_config_bunq_apply_rules') }}</h3>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-body">
 | 
					
						
							|  |  |  |                         <div class="row">
 | 
					
						
							|  |  |  |                             <div class="col-lg-6">
 | 
					
						
							|  |  |  |                                 <p>
 | 
					
						
							|  |  |  |                                     {{ trans('import.job_config_bunq_apply_rules_text') }}
 | 
					
						
							|  |  |  |                                 </p>
 | 
					
						
							|  |  |  |                                 {{ ExpandedForm.checkbox('apply_rules', 1, true) }}
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |             </div>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |             <div class="col-lg-12 col-md-12 col-sm-12">
 | 
					
						
							|  |  |  |                 <div class="box box-default">
 | 
					
						
							|  |  |  |                     <div class="box-header with-border">
 | 
					
						
							| 
									
										
										
										
											2018-05-23 12:36:12 +02:00
										 |  |  |                         <h3 class="box-title">{{ trans('import.job_config_bunq_accounts_title') }}</h3>
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |                     </div>
 | 
					
						
							|  |  |  |                     <div class="box-body">
 | 
					
						
							|  |  |  |                         <div class="row">
 | 
					
						
							|  |  |  |                             <div class="col-lg-8">
 | 
					
						
							|  |  |  |                                 <p>
 | 
					
						
							| 
									
										
										
										
											2018-05-23 12:36:12 +02:00
										 |  |  |                                     {{ trans('import.job_config_bunq_accounts_text') }}
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |                                 </p>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                         <div class="row">
 | 
					
						
							|  |  |  |                             <div class="col-lg-12">
 | 
					
						
							|  |  |  |                                 <table class="table table-bordered table-striped">
 | 
					
						
							|  |  |  |                                     <thead>
 | 
					
						
							|  |  |  |                                     <tr>
 | 
					
						
							|  |  |  |                                         <th> </th>
 | 
					
						
							|  |  |  |                                         <th>{{ trans('list.account_at_bunq') }}</th>
 | 
					
						
							|  |  |  |                                         <th>{{ trans('list.account') }}</th>
 | 
					
						
							|  |  |  |                                     </tr>
 | 
					
						
							|  |  |  |                                     </thead>
 | 
					
						
							|  |  |  |                                     <tbody>
 | 
					
						
							| 
									
										
										
										
											2018-05-23 12:36:12 +02:00
										 |  |  |                                     {% for account in data.accounts %}
 | 
					
						
							| 
									
										
										
										
											2018-05-25 12:08:15 +02:00
										 |  |  |                                         {% set currentIban = 'not-iban' %}
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |                                         <tr>
 | 
					
						
							| 
									
										
										
										
											2018-05-23 12:36:12 +02:00
										 |  |  |                                             <td style="background:{{ account.settings.color }};"></td>
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |                                             <td>
 | 
					
						
							|  |  |  |                                                 <strong>{{ account.description }}</strong><br />
 | 
					
						
							|  |  |  |                                                 {% for alias in account.aliases %}
 | 
					
						
							|  |  |  |                                                     {% if alias.type == 'IBAN' %}
 | 
					
						
							|  |  |  |                                                         {{ alias.name }}: {{ alias.value }}
 | 
					
						
							| 
									
										
										
										
											2018-05-25 12:08:15 +02:00
										 |  |  |                                                         {% set currentIban = alias.value  %}
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |                                                     {% endif %}
 | 
					
						
							|  |  |  |                                                 {% endfor %}
 | 
					
						
							|  |  |  |                                             </td>
 | 
					
						
							|  |  |  |                                             <td>
 | 
					
						
							| 
									
										
										
										
											2018-05-23 12:36:12 +02:00
										 |  |  |                                                 <select class="form-control" name="account_mapping[{{ account.id }}]">
 | 
					
						
							|  |  |  |                                                     <option value="0" label="{{ trans('import.spectre_do_not_import') }}">
 | 
					
						
							|  |  |  |                                                         {{ trans('import.spectre_do_not_import') }}
 | 
					
						
							|  |  |  |                                                     </option>
 | 
					
						
							|  |  |  |                                                     {% for localId, localAccount in data.local_accounts %}
 | 
					
						
							|  |  |  |                                                         {% if localAccount.code == account.currency_code %}
 | 
					
						
							|  |  |  |                                                             <option value="{{ localId }}"{% if currentIban != '' and currentIban == localAccount.iban %} selected{% endif %}>
 | 
					
						
							|  |  |  |                                                                 {{ localAccount.name }}{% if localAccount.iban !='' %} ({{ localAccount.iban }}){% endif %}
 | 
					
						
							|  |  |  |                                                             </option>
 | 
					
						
							|  |  |  |                                                         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2018-03-19 08:17:15 +01:00
										 |  |  |                                                     {% endfor %}
 | 
					
						
							|  |  |  |                                                 </select>
 | 
					
						
							|  |  |  |                                             </td>
 | 
					
						
							|  |  |  |                                         </tr>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                                     {% endfor %}
 | 
					
						
							|  |  |  |                                     </tbody>
 | 
					
						
							|  |  |  |                                 </table>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                         <div class="box-footer">
 | 
					
						
							|  |  |  |                             <button type="submit" class="btn pull-right btn-success">
 | 
					
						
							|  |  |  |                                 {{ ('submit')|_ }}
 | 
					
						
							|  |  |  |                             </button>
 | 
					
						
							|  |  |  |                         </div>
 | 
					
						
							|  |  |  |                     </div>
 | 
					
						
							|  |  |  |                 </div>
 | 
					
						
							|  |  |  |         </form>
 | 
					
						
							|  |  |  |     </div>
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block scripts %}
 | 
					
						
							|  |  |  | {% endblock %}
 | 
					
						
							|  |  |  | {% block styles %}
 | 
					
						
							|  |  |  | {% endblock %}
 |