public function index() { $c = Customer::get(); $bankaccount = Bankaccount::joining(); $voucher = Voucher::orderBy('id', 'desc')->where('type', 5)->take(10)->get(); return view('contravouchar', compact('bankaccount', 'c', 'voucher')); }
public function report() { $s = Supplier::get(); $c = Customer::get(); $bankaccount = Bankaccount::joining(); $voucher = Voucher::orderBy('id', 'desc')->take(10)->get(); return view('ledger', compact('bankaccount', 'c', 's', 'voucher')); }
public function index() { $now = new \DateTime('now'); $month = $now->format('m'); $c = Purchase::get(); $c1 = Physicalsale::get(); $var = array($month); $spname = "salesreport"; $c2 = Info::callinfo($var, $spname); $var1 = array($month - 1); $spname1 = "salesreportp"; $c3 = Info::callinfo($var1, $spname1); $spname2 = "todaysales"; $c4 = Combo::callcombo($spname2); $spname3 = "todaycash"; $c5 = Combo::callcombo($spname3); $spname4 = "todaybankcollection"; $c6 = Combo::callcombo($spname4); $spname5 = "todaycashcollection"; $c7 = Combo::callcombo($spname5); $spname6 = "todaycontracollection"; $c8 = Combo::callcombo($spname6); $spbkash = "todaybkashcollection"; $bkash = Combo::callcombo($spbkash); $spsap = "todaysapcollection"; $sap = Combo::callcombo($spsap); $spkcs = "todaykcscollection"; $kcs = Combo::callcombo($spkcs); $spmbank = "todaymbankcollection"; $mbank = Combo::callcombo($spmbank); // print_r($c4); $sales_info = Sale::orderBy('created_at', 'desc')->take(5)->get(); $purchase_info = Purchase::orderBy('created_at', 'desc')->take(5)->get(); $bankaccount_info = Bankaccount::orderBy('created_at', 'desc')->take(5)->get(); return view('home', compact('c', 'c1', 'c2', 'c3', 'sales_info', 'purchase_info', 'bankaccount_info', 'c4', 'c5', 'c6', 'c7', 'c8', 'bkash', 'sap', 'kcs', 'mbank')); }
public function delete(Request $request, $id) { $b = Bankaccount::find($id); $b->delete(); return Redirect('bankaccount'); }
public function get_bankaccount_code(Request $request) { if ($request->ajax()) { $bankaccount_id = $request->input('bankaccount_id'); $bankaccount_info = Bankaccount::find($bankaccount_id); return response()->json($bankaccount_info); } }
public function bankbookview(Request $request) { $bankaccount = Bankaccount::joining(); return view('bankbook', compact('bankaccount')); }