public function onActivity($type = null)
    {

        Breadcrumbs::register('logger-activity', function($breadcrumbs) {
            $breadcrumbs->push('Activity Log', handles('antares::logger/activity/index'));
        });
        if (!is_null($type)) {
            Breadcrumbs::register('logger-activity-' . $type, function($breadcrumbs) use($type) {
                $breadcrumbs->push(ucfirst($type) . ' Log', handles('antares::logger/activity/' . $type));
            });
            view()->share('breadcrumbs', Breadcrumbs::render('logger-activity-' . $type));
        } else {
            view()->share('breadcrumbs', Breadcrumbs::render('logger-activity'));
        }
    }
public function onActivity($type = null)
    {

        Breadcrumbs::register('logger-activity', function($breadcrumbs) {
            $breadcrumbs->push('Activity Log', handles('antares::logger/activity/index'));
        });
        if (!is_null($type)) {
            Breadcrumbs::register('logger-activity-' . $type, function($breadcrumbs) use($type) {
                $breadcrumbs->push(ucfirst($type) . ' Log', handles('antares::logger/activity/' . $type));
            });
            view()->share('breadcrumbs', Breadcrumbs::render('logger-activity-' . $type));
        } else {
            view()->share('breadcrumbs', Breadcrumbs::render('logger-activity'));
        }
    }
public function onActivity ( $ type = null ) { Breadcrumbs :: register ( 'logger-activity' , function ( $ breadcrumbs ) { $ breadcrumbs -> push ( 'Activity Log' , handles ( 'antares::logger/activity/index' ) ) ; } ) ; if ( ! is_null ( $ type ) ) { Breadcrumbs :: register ( 'logger-activity-' . $ type , function ( $ breadcrumbs ) use ( $ type ) { $ breadcrumbs -> push ( ucfirst ( $ type ) . ' Log' , handles ( 'antares::logger/activity/' . $ type ) ) ; } ) ; view ( ) -> share ( 'breadcrumbs' , Breadcrumbs :: render ( 'logger-activity-' . $ type ) ) ; } else { view ( ) -> share ( 'breadcrumbs' , Breadcrumbs :: render ( 'logger-activity' ) ) ; } }
breadcrumbs when list of activity

@param String $type
breadcrumbs when list of activity