protected function get_breadcrumb() { $array = array(); if ($this->pet->user_id == $this->player()) { $array[] = array('title' => 'Your pets', 'href' => Route::url('pets')); } elseif ($this->pet->user_id) { $array[] = array('title' => $this->pet->user->username . "'" . ($this->pet->user->username[strlen($this->pet->user->username) - 1] == 's' ? '' : 's') . ' pets', 'href' => '#'); } else { $array[] = array('title' => 'Abandoned pets', 'href' => Route::url('pets')); } $array[] = array('title' => $this->pet->name, 'href' => Route::url('pet', array('name' => strtolower($this->pet->name)))); return array_merge(parent::get_breadcrumb(), $array); }
public function get_breadcrumb() { return array_merge(parent::get_breadcrumb(), array(array('title' => 'Payments', 'href' => Route::url('payment')))); }
protected function get_breadcrumb() { return array_merge(parent::get_breadcrumb(), array(array('title' => 'User', 'href' => Route::url('user')))); }
protected function get_breadcrumb() { return array_merge(parent::get_breadcrumb(), array(array('title' => 'Shops', 'href' => Route::url('item.shops.index')))); }
protected function get_breadcrumb() { return array_merge(parent::get_breadcrumb(), array(array('title' => 'Inventory', 'href' => Route::url('item.inventory')))); }
protected function get_breadcrumb() { return array_merge(parent::get_breadcrumb(), array(array('title' => 'Message', 'href' => Route::url('message.inbox')))); }
protected function get_breadcrumb() { return array_merge(parent::get_breadcrumb(), array(array('title' => $this->title, 'href' => Route::url('item.shops.index')), array('title' => $this->shop_title, 'href' => Route::url('item.shops.view', array('id' => $this->shop_id))))); }