| 
									
										
										
										
											2018-04-11 19:49:35 +02:00
										 |  |  | @extends('layout.default') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-16 19:11:32 +02:00
										 |  |  | @section('title', $L('Products')) | 
					
						
							| 
									
										
										
										
											2018-04-12 21:13:38 +02:00
										 |  |  | @section('activeNav', 'products') | 
					
						
							|  |  |  | @section('viewJsName', 'products') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-11 19:49:35 +02:00
										 |  |  | @section('content') | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | <div class="row"> | 
					
						
							|  |  |  | 	<div class="col"> | 
					
						
							|  |  |  | 		<h1> | 
					
						
							|  |  |  | 			@yield('title') | 
					
						
							|  |  |  | 			<a class="btn btn-outline-dark" href="{{ $U('/product/new') }}"> | 
					
						
							| 
									
										
										
										
											2018-07-11 19:43:05 +02:00
										 |  |  | 				<i class="fas fa-plus"></i> {{ $L('Add') }} | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 			</a> | 
					
						
							| 
									
										
										
										
											2018-10-20 14:55:49 +02:00
										 |  |  | 			<a class="btn btn-outline-secondary" href="{{ $U('/productpresets') }}"> | 
					
						
							|  |  |  | 				<i class="fas fa-sliders-h"></i> {{ $L('Presets for new products') }} | 
					
						
							|  |  |  | 			</a> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 		</h1> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2017-04-19 21:09:28 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | <div class="row mt-3"> | 
					
						
							| 
									
										
										
										
											2018-07-11 19:43:05 +02:00
										 |  |  | 	<div class="col-xs-12 col-md-6 col-xl-3"> | 
					
						
							| 
									
										
										
										
											2018-07-13 21:10:58 +02:00
										 |  |  | 		<label for="search">{{ $L('Search') }}</label> <i class="fas fa-search"></i> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 		<input type="text" class="form-control" id="search"> | 
					
						
							| 
									
										
										
										
											2018-07-09 19:27:22 +02:00
										 |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | <div class="row"> | 
					
						
							|  |  |  | 	<div class="col"> | 
					
						
							|  |  |  | 		<table id="products-table" class="table table-sm table-striped dt-responsive"> | 
					
						
							|  |  |  | 			<thead> | 
					
						
							|  |  |  | 				<tr> | 
					
						
							|  |  |  | 					<th>#</th>
 | 
					
						
							|  |  |  | 					<th>{{ $L('Name') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $L('Location') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $L('Min. stock amount') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $L('QU purchase') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $L('QU stock') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $L('QU factor') }}</th> | 
					
						
							| 
									
										
										
										
											2018-09-24 13:02:52 +02:00
										 |  |  | 					<th>{{ $L('Product group') }}</th> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 				</tr> | 
					
						
							|  |  |  | 			</thead> | 
					
						
							|  |  |  | 			<tbody> | 
					
						
							|  |  |  | 				@foreach($products as $product) | 
					
						
							|  |  |  | 				<tr> | 
					
						
							|  |  |  | 					<td class="fit-content"> | 
					
						
							|  |  |  | 						<a class="btn btn-info btn-sm" href="{{ $U('/product/') }}{{ $product->id }}"> | 
					
						
							| 
									
										
										
										
											2018-07-11 19:43:05 +02:00
										 |  |  | 							<i class="fas fa-edit"></i> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 						</a> | 
					
						
							|  |  |  | 						<a class="btn btn-danger btn-sm product-delete-button" href="#" data-product-id="{{ $product->id }}" data-product-name="{{ $product->name }}"> | 
					
						
							| 
									
										
										
										
											2018-07-11 19:43:05 +02:00
										 |  |  | 							<i class="fas fa-trash"></i> | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 						</a> | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							| 
									
										
										
										
											2018-10-06 18:08:25 +02:00
										 |  |  | 						{{ $product->name }}@if(!empty($product->picture_file_name)) <i class="fas fa-image text-muted"></i>@endif | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						{{ FindObjectInArrayByPropertyValue($locations, 'id', $product->location_id)->name }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						{{ $product->min_stock_amount }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						{{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $product->qu_id_purchase)->name }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						{{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $product->qu_id_stock)->name }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						{{ $product->qu_factor_purchase_to_stock }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							| 
									
										
										
										
											2018-09-24 13:02:52 +02:00
										 |  |  | 						@if(!empty($product->product_group_id)) {{ FindObjectInArrayByPropertyValue($productGroups, 'id', $product->product_group_id)->name }} @endif | 
					
						
							| 
									
										
										
										
											2018-07-10 20:37:13 +02:00
										 |  |  | 					</td> | 
					
						
							|  |  |  | 				</tr> | 
					
						
							|  |  |  | 				@endforeach | 
					
						
							|  |  |  | 			</tbody> | 
					
						
							|  |  |  | 		</table> | 
					
						
							|  |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2017-04-15 23:16:20 +02:00
										 |  |  | </div> | 
					
						
							| 
									
										
										
										
											2018-04-11 19:49:35 +02:00
										 |  |  | @stop |