{{-- @push('third_party_stylesheets') @include('layouts.datatables_css') @endpush {!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!} @push('third_party_scripts') @include('layouts.datatables_js') {!! $dataTable->scripts() !!} @endpush --}}
@foreach ($orders as $order) @endforeach
Is Paid Is Accepted Crop Buyer Total Buy Requests Crop On Sale Details Action
@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() !!}
{{--
{{ $orders->links() }}
--}}