%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/bos_naturals/app/Http/Controllers/
Upload File :
Create Path :
Current File : /home/ugotscom/bos_naturals/app/Http/Controllers/PerformanceController.php

<?php

namespace App\Http\Controllers;

use App\performance;
use Carbon\Carbon;
use Illuminate\Http\Request;

class PerformanceController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $data=performance::whereYear('date', Carbon::now()->year)
        ->selectRaw("SUM(e_mail) as totalemail,SUM(pmail) as totalpmail,SUM(fmail) as totalfmail,SUM(pqr ) as totalpqr,SUM(exi_pqr ) as totalexi_pqr,
        SUM(sdr) as totalsdr  ,SUM(sdr_exi) as totalsdr_exi,SUM(oc) as totaloc  ,SUM(oc_exi) as totaloc_exi,user_id")
        ->groupBy('user_id')
        ->get();
        return $data;
    }

    /**
     * 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  \App\performance  $performance
     * @return \Illuminate\Http\Response
     */
    public function show(performance $performance)
    {
        //
    }

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

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

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

Zerion Mini Shell 1.0