<?php

namespace RadDB\Http\Controllers;

use RadDB\Machine;
use RadDB\TestDate;
use Illuminate\Http\Request;

class SurveyDataListingController extends Controller
{
    /**
     * Display a grid of machines with indicator of survey data availability
     * for each year
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        // Get a list of active machines
        // Ignore any machines that have been removed or are inactive
        $machines = Machines::with(['modality', 'manufacturer', 'location','testdate'])
            ->active()
            ->orderBy('modality_id', 'location_id', 'description')
            ->get();
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show($id)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function edit($id)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy($id)
    {
        //
    }
}

Add new controller for survey data listings
Add new controller for survey data listings
