<?php $__env->startSection('content'); ?>




        <!-- Content Wrapper. Contains car content -->
        <div class="content-wrapper" style="margin-left:10px !important;">
            <!-- Content Header (car header) -->
            <section class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>انشاء ملف جديد</h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="#">الرئيسية</a></li>
                                <li class="breadcrumb-item active">ادارة النظام</li>
                            </ol>
                        </div>
                    </div>
                </div><!-- /.container-fluid -->
            </section>









            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-md-12">
                        <div class="success">
                            <?php if(session()->has('success')): ?>
                                <div class="alert alert-success">
                                    <?php echo e(session()->get('success')); ?>

                                </div>
                            <?php endif; ?>

                                <h2 id="success" style="color: green;
                                font-weight: bolder;">

                                </h2>


                        </div>
                        <form action="<?php echo e(url('/admin/expenses')); ?>" method="post" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>

      
<?php  /*
$expense_types = \App\expense_types::all();
?>
                            <label for="expense_type">اسم المنصرف</label>

<select name="expense_id" id="expense_id" class="form-control" required="required">
    <option disabled="disabled" selected="selected">اختر نوع المنصرف</option>
@foreach($expense_types as $r)
        <option value="{{$r->id}}">{{$r->title}}</option>
@endforeach
</select>
<br>
*/ ?>


                        <div class="form-group">
                            <label for="expense_date"> تاريخ المنصرف </label>
                            <input type="date" value="<?php echo date('Y-m-d');?>" name="expense_date" id="expense_date" class="form-control" id="" placeholder="Enter expense_date">
                            <?php $__errorArgs = ['expense_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                        </div>



                        <div class="form-group">
                            <label for="expense_name">اسم المنصرف </label>
                            <input type="text" name="expense_name" id="expense_name" class="form-control" id="expense_name" placeholder="Enter expense_name">
                            <?php $__errorArgs = ['expense_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                        </div>


                        <div class="form-group">
                            <label for="expense_price">سعر المنصرف</label>
                            <input type="number" name="expense_price" id="expense_price" class="form-control" id="expense_price" placeholder="Enter expense_price">
                            <?php $__errorArgs = ['car_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                        </div>

                        <div class="form-group">
                            <label for="payment_method"> طريقة الدفع  </label>
                           <select class="form-control" name="payment_method">
                            <!--   <option value="bankak">Bankak | بنكك</option> -->
                               <option value="cash">Cash | كاش </option>
                           </select>

                        </div>

                        <div class="form-group">
                            <label for="car_no">ملاحظات</label>
                            <textarea class="form-control" name="expense_note" id="expense_note"></textarea>

                        </div>



                        <div class="card-footer">
                        <button class="btn btn-primary" >اضافة</button>
                        
                        </div>


                        </form>


                    </div>
                    <!-- /.col-->
                </div>
                <!-- ./row -->
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->





<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\php\pear\~\resources\views/admin/expenses/create.blade.php ENDPATH**/ ?>