app/Http/Controllers/StaffController.php
/** Show Notification Information by your staff ID **/
Show Notification Information by your staff ID
Show Notification Information by your staff ID
public function showNotifications($staffID) {
		if(Staff::find($id) == null) {
			return redirect('supplier')->withError('Notifications are not found!');
		}else{
			$result = Staff::find($id)->notifications;  
			return View::make('supplier.showNotifications')->with('supplier', $result);
		}
	}
public function showNotifications ( $ staffID ) { if ( Staff :: find ( $ id ) == null ) { return redirect ( 'supplier' ) -> withError ( 'Notifications are not found!' ) ; } else { $ result = Staff :: find ( $ id ) -> notifications ; return View :: make ( 'supplier.showNotifications' ) -> with ( 'supplier' , $ result ) ; } }
Show Notification Information by your staff ID
Show Notification Information by your staff ID