empty page style added

This commit is contained in:
batuhanbas 2019-12-12 19:15:20 +03:00
parent ba3b2df37b
commit 02ca249e77
17 changed files with 644 additions and 582 deletions

11
public/css/custom.css vendored
View File

@ -745,6 +745,12 @@
/*--------Height 0 Finish--------*/
table .align-items-center td span.badge {
height: 24px;
padding-top: 8px;
font-size: 9px;
}
/*----------------RESPONSIVE START LINE----------------*/
/*--------Xs Breakpoint--------*/
@media (min-width: 304px) and (max-width: 575.98px)
@ -952,8 +958,3 @@
/*--------XL Breakpoint Finish--------*/
/*----------------RESPONSIVE END LINE----------------*/
table .align-items-center td span.badge {
height: 24px;
padding-top: 8px;
font-size: 9px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -165,4 +165,16 @@ return [
'this_month' => 'This Month',
'last_month' => 'Last Month',
],
'empty' => [
'documentation' => 'Check out the <a href=":url" target="_blank" class="text-success">documentation</a> for more details.',
'items' => 'Items can be products or services. You can use items when creating invoices and bills to have the price, tax etc fields populated.',
'invoices' => 'Invoices can be one time or recurring. You can send them to customers and start accepting online payments.',
'revenues' => 'Revenue is a paid income transaction. It can be an independent record (i.e. deposit) or attached to an invoice.',
'customers' => 'Customers are required if you want to create invoices. They may also log in to Client Portal and see their balance.',
'bills' => 'Bills can be one time or recurring. They indicate what you owe your vendors for the products or services you purchase.',
'payments' => 'Payment is a paid expense transaction. It can be an independent record (i.e. food receipt) or attached to a bill.',
'vendors' => 'Vendors are required if you want to create bills. You can see the balance you owe and filter reports by the vendor.',
],
];

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($items->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -104,6 +105,9 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'items', 'docs_path' => 'items'])
@endif
@endsection
@push('scripts_start')

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($bills->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -93,6 +94,9 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'bills', 'docs_path' => 'expenses/bills'])
@endif
@endsection
@push('scripts_start')

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($payments->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -100,6 +101,9 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'payments', 'docs_path' => 'expenses/payments'])
@endif
@endsection
@push('scripts_start')

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($vendors->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -104,6 +105,9 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'vendors', 'docs_path' => 'expenses/vendors'])
@endif
@endsection
@push('scripts_start')

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($customers->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -106,6 +107,9 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'customers', 'docs_path' => 'incomes/customers'])
@endif
@endsection
@push('scripts_start')

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($invoices->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -95,6 +96,9 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'invoices', 'docs_path' => 'incomes/invoices'])
@endif
@endsection
@push('scripts_start')

View File

@ -11,6 +11,7 @@
@endsection
@section('content')
@if ($revenues->count())
<div class="card">
<div class="card-header border-bottom-0" v-bind:class="[bulk_action.show ? 'bg-gradient-primary' : '']">
{!! Form::open([
@ -101,6 +102,11 @@
</div>
</div>
</div>
@else
@include('partials.admin.empty_page', ['page' => 'revenues', 'docs_path' => 'incomes/revenues'])
@endif
@endsection
@push('scripts_start')

View File

@ -0,0 +1,19 @@
<div class="card">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 text-center p-5">
<img src="{{ asset('public/img/empty_pages/' . $page . '.png') }}" height="300" alt="@yield('title')"/>
</div>
<div class="col-md-6 text-center p-5">
<p class="text-justify description">{!! trans('general.empty.' . $page) !!} {!! trans('general.empty.documentation', ['url' => 'https://akaunting.com/docs/user-manual/' . $docs_path]) !!}</p>
<a href="{{ route($page . '.create') }}" class="btn btn-success btn-lg btn-icon header-button-top float-right mt-4">
<span class="btn-inner--icon text-white"><i class="fas fa-plus"></i></span>
<span class="btn-inner--text text-white">{{ trans('general.title.create', ['type' => trans_choice('general.' . $page, 1)]) }}</span>
</a>
</div>
</div>
</div>
</div>