<?php namespace App\Http\Controllers;

use Auth\AuthController;
use App\Models\Employeur;
use App\Models\Beneficiaire;
use App\Models\Beneftype;
use App\Models\Benefstatut;
use App\Models\Versement_hg;
use App\Models\User;
use App\Models\Role2;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Redirect;
use View;
use DB;

use Response;



class VersementsHGController extends Controller {
    /**
     * Liste des versements
     */
    public function index($beneficiaire_id="")
    {
        $user=User::where('id','=',Session::get('id'))->first();
        $versements_hg = Versement_hg::where('benum','=',$beneficiaire_id)->get();
        return View::make('prestations.versements_h.index_hg', [ 
            'versements_hg' => $versements_hg,
            'user'=>$user,
        ]);
    }


}