49 lines
3.1 KiB
PHP
49 lines
3.1 KiB
PHP
@php
|
|
$ref_budget_type = DB::table('ref_budget_type')->where('company_id', Auth::user()->company_id)->where('is_shown', true)->whereNotIn('id', [1])->get();
|
|
@endphp
|
|
<x-other.modal id="mFormBudget" size="lg" title="Form Budget" subTitle="" info="Transaksi Baru" :separator="true">
|
|
<x-slot name="action">
|
|
<button onclick="storeBudget()" class="btn btn-success font-weight-bold mr-2">Simpan</button>
|
|
</x-slot>
|
|
<x-slot name="content">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card card-custom card-border card-stretch gutter-b">
|
|
<div class="card-body">
|
|
<form id="form_budget">
|
|
<input type="hidden" id="get_id" name="get_id" value="">
|
|
<input type="hidden" id="id_project" name="project_id" value="{{ $id_project }}">
|
|
<input type="hidden" id="operator" name="operator" value="">
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<x-form.date title="Tanggal Transaksi" id="tx_date" value=""/>
|
|
</div>
|
|
<div class="col-4">
|
|
<x-form.select title="Jenis Budget" id="budget_type">
|
|
<x-slot name="option">
|
|
<option value="">Pilih Jenis Budget</option>
|
|
@if(count($ref_budget_type))
|
|
@foreach ($ref_budget_type as $rbt)
|
|
<option value="{{ $rbt->id }}" data-txtype="{{ $rbt->tx_type }}" data-operator="{{ $rbt->operator }}">{{ $rbt->definition }}</option>
|
|
@endforeach
|
|
@endif
|
|
</x-slot>
|
|
</x-form.select>
|
|
</div>
|
|
<div class="col-4">
|
|
<x-form.input title="Tx Type" id="tx_type" value=""/>
|
|
</div>
|
|
<div class="col-4">
|
|
<x-form.currency title="Nominal" id="amount_tx" value="" maxlength="" label="Nominal"/>
|
|
</div>
|
|
<div class="col-12">
|
|
<x-form.textarea title="Keterangan Transaksi" id="tx_note" value=""/>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-slot>
|
|
</x-other.modal> |