@include('adminlte::widget.success_button') @foreach ($o->suppliers as $so) @endforeach @if(($x=\App\Models\Supplier::active()->whereNotIn('id',$o->suppliers->pluck('id'))->orderBy('name')->get())->count()) @endif
Supplier ID Added
{{ $so->name }} {{ $so->pivot->id }} {{ $so->pivot->created_at }}
@csrf
@include('adminlte::widget.form_select',[ 'label'=>'Add Supplier', 'icon'=>'fas fa-handshake', 'id'=>'supplier_id', 'old'=>'supplier_id', 'options'=>$x->transform(function($item) { return ['id'=>$item->id,'value'=>$item->name]; }), 'value'=>'', ])
@include('adminlte::widget.form_text',[ 'label'=>'ID', 'icon'=>'fas fa-hashtag', 'id'=>'id', 'old'=>'id', 'name'=>'id', 'value'=>'', ])