public function postCreate()
 {
     $payment = new payment();
     $payment->name = Input::get('name');
     $payment->acc_holder = Input::get('acc_holder');
     $payment->acc_no = Input::get('acc_no');
     $payment->acc_type = Input::get('acc_type');
     $payment->status = Input::get('status');
     $logo = Input::file('logo');
     $filename = date('m-d-Y-H_i_s') . "-" . $logo->getClientOriginalName();
     $path = public_path('img/payment/' . $filename);
     Image::make($logo->getRealPath())->resize(150, null, function ($constraint) {
         $constraint->aspectRatio();
     })->save($path);
     $payment->logo = 'img/payment/' . $filename;
     $payment->save();
     return redirect('admin/payments')->with('flash_message', 'payment created');
 }
                $app->render(new u('payment.flexiload.request'));
            });
            $app->post('flexiload/confirm/', function () use($app) {
                $app->view->setData('form_action', BASEURL . "dashboard/payment/add/flexiload/confirm/process");
                $app->view->setData('form_title', "Are you confirm?");
                $app->view->setData('payment_amount', $app->request()->post('payment_amount'));
                $app->view->setData('payment_memo', $app->request()->post('payment_memo'));
                $app->view->setData('customer_id', $app->request()->post('customer_id'));
                $app->render(new u('payment.flexiload.request_confirm'));
            });
            $app->get('/flexiload/confirm/process', function () use($app) {
                $payment = new payment();
                $payment->who_is_paying = L::getSessionValue('usid');
                $payment->who_is_paying = $app->request()->post();
                $payment->payment_type = 'return';
                $payment->save();
                if ($payment->fails()) {
                    $app->view->setData('error', 1);
                    $app->view->setData('msg', $payment->getError());
                    $app->render(new u('msg'));
                } else {
                    $app->view->setData('success', 1);
                    $app->view->setData('msg', "Succesfully Payment  Returned.");
                    $app->render(new u('msg'));
                }
            });
            //Flexiload End
        });
        //End return payment operation
    });
});