/** * Display the specified resource. * * @param int $id * @return Response */ public function show($publicId) { $vendor = Vendor::withTrashed()->scope($publicId)->with('vendorcontacts', 'size', 'industry')->firstOrFail(); Utils::trackViewed($vendor->getDisplayName(), 'vendor'); $actionLinks = [['label' => trans('texts.new_vendor'), 'url' => '/vendors/create/' . $vendor->public_id]]; $data = array('actionLinks' => $actionLinks, 'showBreadcrumbs' => false, 'vendor' => $vendor, 'totalexpense' => $vendor->getTotalExpense(), 'title' => trans('texts.view_vendor'), 'hasRecurringInvoices' => false, 'hasQuotes' => false, 'hasTasks' => false); return View::make('vendors.show', $data); }