 @extends('layouts.user')

 {{-- Web site Title --}}


 {{-- Content --}}
 @section('content')


 <form method="POST" action="{{ route('expense.insert') }}">
     <input type="hidden" name="_token" value="{{ csrf_token() }}">
     <div class="form-group">
         <label for="name_en">Select Expense type</label>
         <!-- <select type="text" class="form-control" name="beneficiary_name" id="beneficiary_name" aria-describedby="emailHelp" placeholder="Enter Beneficiary Name" required> -->

         <select class="form-control form-select form-select-lg mb-6" aria-label=".form-select-lg example" id="fk_type" name="fk_type" required>
             <!-- <option selected>Open this select menu</option> -->
             <?php
                foreach ($all_types as $type) :
                    echo '<option value="' . $type->id . '">' . $type->name_en . '</option>'; //close your tags!!
                endforeach;
                ?>
         </select>
     </div>

     <div class="form-group">
         <label for="name_en">Select Account</label>
         <!-- <select type="text" class="form-control" name="beneficiary_name" id="beneficiary_name" aria-describedby="emailHelp" placeholder="Enter Beneficiary Name" required> -->

         <select class="form-control form-select form-select-lg mb-6" aria-label=".form-select-lg example" id="linked_account" name="linked_account" required>
             <!-- <option selected>Open this select menu</option> -->
             <?php
                foreach ($all_accounts as $type) :
                    echo '<option value="' . $type->id . '">' . $type->beneficiary_name . '</option>'; //close your tags!!
                endforeach;
                ?>
         </select>
     </div>




     <div class="form-group">
         <label for="name_ar">Expense Amount</label>
         <input type="number" class="form-control" name="expense_amount" id="expense_amount" aria-describedby="emailHelp" placeholder="Enter Account Number" required>
     </div>

     <div class="form-group">
         <label for="name_ar">Paid Amount</label>
         <input type="number" class="form-control" name="paid_amount" id="paid_amount" aria-describedby="emailHelp" placeholder="Enter Account Number" required>
     </div>



     <div class="form-group">
         <label for="description_en">Title English</label>
         <input class="form-control" name="title_en" id="title_en" rows="1" required></textarea>
     </div>
     <div class="form-group">
         <label for="description_ar">
             Title Arabic
         </label>
         <input class="form-control" name="title_ar" id="title_ar" rows="1" required></textarea>
     </div>
     <div class="form-group">
         <label for="description_en">Note English</label>
         <textarea class="form-control" name="note_en" id="note_en" rows="3" required></textarea>
     </div>
     <div class="form-group">
         <label for="description_ar">
             Note Arabic
         </label>
         <textarea class="form-control" name="note_ar" id="note_ar" rows="3" required></textarea>
     </div>

     <!-- <div class="form-group">
         <label for="price">Opening Ballance</label>
         <input type="number" class="form-control" name="opening_ballance" id="opening_ballance" aria-describedby="emailHelp" placeholder="Enter Amount" required>
     </div> -->
     <button type="submit" class="btn btn-primary">Create</button>
 </form>
 @stop