app/Http/Controllers/AbonnementController.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 pay()
    {
        $abonnementsP = DB::table('clients')->join('abonnements', 'abonnements.client_id', '=', 'clients.id')
        ->select()
                ->whereRaw('date_fine > NOW()')
                ->orderBy('date_fine', 'desc')
                ->get();
         return view('admin.abonnement.pay' , compact('abonnementsP'));
    }
public function pay ( ) { $ abonnementsP = DB :: table ( 'clients' ) -> join ( 'abonnements' , 'abonnements.client_id' , '=' , 'clients.id' ) -> select ( ) -> whereRaw ( 'date_fine > NOW()' ) -> orderBy ( 'date_fine' , 'desc' ) -> get ( ) ; return view ( 'admin.abonnement.pay' , compact ( 'abonnementsP' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .