LaporanController.php 518 Bytes
Newer Older
Siti Aisah committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Admin\Vsaku;
use Illuminate\Http\Request;

class LaporanController extends Controller
{

    public function index() {

        $data['rs'] = Vsaku::get();

        return view('laporan.index', $data);
    }

    public function download(Request $request) {

        $data['nama_file'] = 'Laporan Reviewer Sipeka '.date('Y-m-d');
        $data['rs'] = Vsaku::get();

        return view('laporan.excel', $data);
    }
}