This commit is contained in:
pushuo 2022-08-16 19:03:45 +08:00
parent b0f1472d2b
commit 00790c1d6c
2 changed files with 9 additions and 12 deletions

View File

@ -72,10 +72,7 @@
<tr class="align-middle">
<td>
<div class="img me-3 border wh-60">
{{-- @foreach ($order->orderProducts as $product)
<img src="{{ $product->image }}" class="img-fluid">
@endforeach --}}
<img src="{{ $order->orderProducts[0]->image }}" class="img-fluid">
<img src="{{ $order->orderProducts[0]->image ?? '' }}" class="img-fluid">
</div>
</td>
<td>

View File

@ -48,6 +48,14 @@
<input type="hidden" name="order_product_id" value="{{ $orderProduct->id }}">
<div class="row">
<div class="col-sm-6 mb-4">
<label class="form-label">服务类型</label>
<select class="form-select" name="type">
@foreach ($types as $key => $item)
<option value="{{ $key }}" {{ $key == old('type', '') ? 'selected': '' }}>{{ $item }}</option>
@endforeach
</select>
</div>
<div class="col-sm-6 mb-4">
<label class="form-label">退换数量</label>
<input class="form-control" type="text" value="{{ old('quantity', $orderProduct->quantity ?? '1') }}">
@ -69,14 +77,6 @@
<option value="1"></option>
</select>
</div>
<div class="col-sm-6 mb-4">
<label class="form-label">服务类型</label>
<select class="form-select" name="type">
@foreach ($statuses as $key => $item)
<option value="{{ $key }}" {{ $key == old('type', '') ? 'selected': '' }}>{{ $item }}</option>
@endforeach
</select>
</div>
<div class="col-12 "></div>