You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('invoice.create'))
|
|
|
|
@section('content')
|
|
<h1 class="page-header">
|
|
<div class="pull-right">
|
|
{!! FormField::formButton(['route' => 'invoice-drafts.create'], trans('invoice.create'), [
|
|
'class' => 'btn btn-default',
|
|
'name' => 'create-invoice-draft',
|
|
'id' => 'invoice-draft-create-button'
|
|
] ) !!}
|
|
</div>
|
|
{{ trans('invoice.draft_list') }}
|
|
</h1>
|
|
|
|
<?php use Facades\App\Services\InvoiceDrafts\InvoiceDraftCollection;?>
|
|
@includeWhen(! InvoiceDraftCollection::isEmpty(), 'invoice-drafts.partials.invoice-draft-tabs')
|
|
@if ($draft)
|
|
@if (Request::get('action') == 'confirm')
|
|
@include('invoice-drafts.partials.draft-confirm')
|
|
@else
|
|
<div class="row" style="margin-top: 10px">
|
|
<div class="col-md-9">@include('invoice-drafts.partials.draft-item-list')</div>
|
|
<div class="col-md-3">@include('invoice-drafts.partials.form-draft-detail')</div>
|
|
</div>
|
|
@endif
|
|
@else
|
|
{{ trans('invoice.draft_list_empty') }}
|
|
{!! FormField::formButton(['route' => 'invoice-drafts.create'], trans('invoice.create'), [
|
|
'id' => 'invoice-draft-create-button',
|
|
'name' => 'create-invoice-draft',
|
|
'class' => 'btn btn-link',
|
|
'style' => 'padding:0px',
|
|
]) !!}
|
|
@endif
|
|
@endsection
|