app/Http/Controllers/PatientController.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()
    {
        $data="none";
        $insuranceType = Insurance::all();
        $detention_records = 0;
        $patient_registrations =0;
        $charges = Charge::all();
        return view('pages.patients.index')
            ->with('data',$data)
            ->with('insuranceType',$insuranceType)
            ->with('charges',$charges)
            ->with('patient_registrations',$patient_registrations)
            ->with('detention_records',$detention_records);
    }
public function index ( ) { $ data = " none " ; $ insuranceType = Insurance :: all ( ) ; $ detention_records = 0 ; $ patient_registrations = 0 ; $ charges = Charge :: all ( ) ; return view ( 'pages.patients.index' ) -> with ( 'data' , $ data ) -> with ( 'insuranceType' , $ insuranceType ) -> with ( 'charges' , $ charges ) -> with ( 'patient_registrations' , $ patient_registrations ) -> with ( 'detention_records' , $ detention_records ) ; }
Display a listing of the resource.
Display a listing of the resource .