public function show(VendorRequest $request)
{
$vendor = $request->entity();
$actionLinks = [['label' => trans('texts.new_vendor'), 'url' => URL::to('/vendors/create/' . $vendor->public_id)]];
$data = ['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);
}