Example #1
0
 /**
  * Nampilin tampilan bikin kurs harian.
  *
  * @return Response
  */
 public function kurs()
 {
     // $default_mata_uang = Perusahaan::first()->mata_uang;
     $default_mata_uang = 'IDR';
     // $mata_uangs = MataUang::where('simbol', '!=', $default_mata_uang);
     // $mata_uangs = $mata_uangs->get();
     $mata_uangs = MataUang::get();
     return view('currency.kurs', compact('mata_uangs', 'default_mata_uang'));
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $perusahaan = Perusahaan::first();
     $mata_uangs = MataUang::get();
     if ($perusahaan == null) {
         $perusahaan = new Perusahaan();
     }
     return view('perusahaan.create', compact('perusahaan', 'mata_uangs'));
 }
Example #3
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $currencies = MataUang::get(['simbol', 'nama'])->toArray();
     $tipeakuns = TipeAkun::get(['id', 'nama'])->toArray();
     return view('akun.create', compact('currencies', 'tipeakuns'));
 }