@extends('modal')
@section('content')
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h5 class="modal-title">{{trans('application.edit_expense')}}</h5>
        </div>
        {!! Form::model($expense, ['route' => ['expenses.update', $expense->uuid], 'class' => 'ajax-submit', 'method' => 'PATCH']) !!}
        <div class="modal-body">
            @if (count($errors) > 0)
            {!! form_errors($errors) !!}
            @endif
            @include('expenses.partials._form')
        </div>
        <div class="modal-footer">
            {!! form_buttons() !!}
        </div>
        {!! Form::close() !!}
    </div>
</div>
@endsection
@section('scripts')
@endsection