@if ($order->is_paid == 0)
Not paid
@else
Paid
@endif
|
@if ($order->is_accepted == 0)
Price not accepted
@else
Price accepted
@endif
|
{{ $order->user->username }} |
{{ $order->user->crop_orders->count() }} |
@foreach($order->crops_on_sale as $item)
- Crop: {{ $item->crop->name}} Farmer: {{ $item->user->username}} Buying Price Request: UGX {{ $item->pivot->buying_price}} Quantity: {{ $item->quantity }}{{ $item->quantity_unit }}
@endforeach
|
|
{!! Form::open(['route' => ['cropOrders.destroy', $order->id], 'method' => 'delete']) !!}
{!! Form::button(' ', [
'type' => 'submit',
'class' => 'btn btn-danger btn-xs',
'onclick' => "return confirm('Are you sure you want to delete this order ?')",
]) !!}
{!! Form::close() !!}
|