@extends('layout.tokomain') @section('activenav', '2') @section('head-content-title', 'Pemebelian Barang') @section('head-back-nav') @endsection @section("container")

Tambah Stock Barang

@php // form start MyForm::start('toko/stock-barang/simpan', 'post'); MyForm::input([ "title" => "Tanggal Beli" ,"name" => "tanggal_beli" ,"type" => "text" ,"mask" => "9999-99-99" ,"class" => "form-control" ,"placeholder" => "isikan id barang" ,'value' => date('Y-m-d') ,'info' => 'otomatis diisi tanggal sekarang dengan format ( tahun - bulan - hari ) / edit sesuai kebutuhan' ]); MyForm::set_db('akun'); MyForm::set_select([ "title" => "Pilih Barang" ,"id" => "id_barang" ,"name" => "id_barang" ,"class" => "form-control" ,"option" => [ "value" => "id_akun" ,"text" => "nama_akun" ] ,"kondisi" => [ ['perusahaan', '=', Session::get("toko-user")['nama_perusahaan']] ], ]); MyForm::print_select(); MyForm::input([ "title" => "Total Barang" ,"name" => "total_barang" ,"type" => "number" ,"class" => "form-control" ,"placeholder" => "Total Barang" ]); MyForm::input([ "title" => "Harga Satuan" ,"name" => "harga_satuan" ,"type" => "text" ,"currency" => "Rp " ,"class" => "form-control" ,"placeholder" => "Harga Satuan" ]); // nominal input MyForm::input([ "title" => "Harga Barang" ,"name" => "harga_barang" ,"type" => "text" ,"currency" => "Rp " ,"class" => "form-control" ,"placeholder" => "isikan total harga barang" ]); MyForm::end([ 'back-url' => "toko/stock-barang", 'back-button' => 'btn btn-default', 'id-submit' => 'simpanbutton', 'submit-button' => 'btn btn-primary' ]) @endphp
@endsection