app/Http/Controllers/Admin/BidsController.php
//Display a listing of the resource.
Display a listing of the resource.
Display a listing of the resource .
public function index(Tender $tender)
    {
        $bids = $tender->bids()->with('tender')->get();
        return view('bids.index',compact('tender','bids'));
    }
public function index ( Tender $ tender ) { $ bids = $ tender -> bids ( ) -> with ( 'tender' ) -> get ( ) ; return view ( 'bids.index' , compact ( 'tender' , 'bids' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//dd($bids->toArray());