73 lines
2.0 KiB
PHP
73 lines
2.0 KiB
PHP
@extends('modules.order.index')
|
|
@section('content')
|
|
<p class="h3 text-center">Az alábbi félbehagyott megrendelései vannak:</p>
|
|
<table class="table table-hover table-sm ordersSelectTable">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#</th>
|
|
<th scope="col">Szállító</th>
|
|
<th scope="col">Szálltási dátum</th>
|
|
<th scope="col">Státusz</th>
|
|
<th scope="col">Funkciók</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{--
|
|
id
|
|
orderStatus
|
|
deliveryDate
|
|
supplier name
|
|
|
|
--}}
|
|
@php
|
|
|
|
$classType=[
|
|
0=>'table-danger',
|
|
1=>'table-warning',
|
|
];
|
|
$rowNum=1;
|
|
$statusName=[
|
|
|
|
'supplierSelect'=>'Beszállító kiválasztása',
|
|
'parameter'=>'Szállítási adatok megadása',
|
|
'productSelect'=>'Termékek kiválasztása',
|
|
'invoice'=>'Megrendelés átekintése',
|
|
'send'=>'Elküldés',
|
|
'archived'=>'Archiválva',
|
|
];
|
|
|
|
@endphp
|
|
|
|
@foreach($orders as $key=>$order)
|
|
@php
|
|
if(isset($classType[$order->diffWarningLevel])){
|
|
$class=$classType[$order->diffWarningLevel];
|
|
}else{
|
|
$class='';
|
|
}
|
|
@endphp
|
|
<tr class="{{$class}}" data-orderId="{{$order->id}}">
|
|
<th scope="row">{{ $loop->iteration }}</th>
|
|
<td>{{$order->supplier->name}}</td>
|
|
<td>{{$order->deliveryDate}}</td>
|
|
<td>{{$statusName[$order->orderStatus]}}</td>
|
|
<td><button class="btn btn-sm btn-success buttonEdit" data-action="edit">Folytat</button>
|
|
<button class="btn btn-sm btn-danger buttonDelete" data-action="delete">Töröl</button>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="d-flex justify-content-center">
|
|
<button class="btn btn-info buttonNew" data-action="new">Új megrendelés indítása</button>
|
|
</div>
|
|
|
|
<script>
|
|
|
|
|
|
$(document).ready(function() {
|
|
APP.OrderModule.initViewOrderSelect({});
|
|
} );
|
|
</script>
|
|
@endsection
|