@extends('adminlte::page') @section('content')
<?php Fun::lang()?>
    <div class="title-page">
        <div class="page-bar">
            <ul class="page-breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
                <li><a href="#">Accounting</a></li>
                <li><a href="#">Withdrawal Edit</a></li>
            </ul>
        </div>
    </div>
    <div class="page">

         <div class="top-content">
            <div class="row">
                <div class="col-sm-12 col-xs-12">
                    <div class="title-add">
                        <div class="pull-left">
                            <h3>Withdrawal Edit</h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12 col-xs-12">
                @if (count($errors) > 0)
                <div class="alert-message alert-danger">
                    <strong>Whoops!</strong> There were some problems with your input.

                    <ul>
                        @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
                @endif
                <div class="box-body table-responsive">
                    {!! Form::model($withdrawal, ['method' => 'PATCH','route' => ['accouting-withdrawal.update', $withdrawal->id]]) !!}
                    <div class="row">
                        <div class="form-group col-sm-6 col-xs-12">

                            <label class="required">Account Type</label>
                            {!! Form::select('journal_acccode', $account_chats, null, ['class' => 'form-control select2']) !!}

                        </div>
                        <div class="form-group col-sm-6 col-xs-12">

                            <label class="required">Amount</label>
                            {!! Form::text('journal_debit', null, array('placeholder' => 'Amount','class' => 'form-control')) !!}

                        </div>
                        <div class="form-group col-sm-6 col-xs-12">

                            <label class="required">Date</label>
                            {!! Form::text('journal_paydate', null, array('placeholder' => 'Date','class' => 'form-control date_picker','autocomplete'=>'off')) !!}

                        </div>
                        <div class="form-group col-sm-6 col-xs-12">

                            <label class="required">Reference</label>
                            {!! Form::text('journal_invoice', null, array('placeholder' => 'Reference','class' => 'form-control')) !!}

                        </div>
                        <div class="col-sm-12">

                            <label for="required" class="required">Description</label>
                            {!! Form::textarea('journal_des', null, array('placeholder' => 'Description','class' => 'form-control','rows'=>'3')) !!}

                        </div>
                        <div class="col-sm-12 col-xs-12">
                            <div class="form-group">
                                <input type="submit" value="Save" class="button_primary pull-right">
                            </div>
                        </div>
                    </div>

                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
    @endsection