app/Http/Controllers/ReportController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $title = "Patient's Report";
        $patient = Patient::where('result', 'N')->orWhere('result', 'P')->get();
        return view('report.index', compact('title','patient'));
    }
public function index ( ) { $ title = " Patient's Report " ; $ patient = Patient :: where ( 'result' , 'N' ) -> orWhere ( 'result' , 'P' ) -> get ( ) ; return view ( 'report.index' , compact ( 'title' , 'patient' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .