Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
8e99f2c3e5
@ -39,9 +39,7 @@ class Payments extends Controller
|
|||||||
|
|
||||||
$accounts = Account::enabled()->orderBy('name')->pluck('name', 'id');
|
$accounts = Account::enabled()->orderBy('name')->pluck('name', 'id');
|
||||||
|
|
||||||
$transfer_cat_id = Category::transfer();
|
return view('purchases.payments.index', compact('payments', 'vendors', 'categories', 'accounts'));
|
||||||
|
|
||||||
return view('purchases.payments.index', compact('payments', 'vendors', 'categories', 'accounts', 'transfer_cat_id'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,9 +39,7 @@ class Revenues extends Controller
|
|||||||
|
|
||||||
$accounts = Account::enabled()->orderBy('name')->pluck('name', 'id');
|
$accounts = Account::enabled()->orderBy('name')->pluck('name', 'id');
|
||||||
|
|
||||||
$transfer_cat_id = Category::transfer();
|
return view('sales.revenues.index', compact('revenues', 'customers', 'categories', 'accounts'));
|
||||||
|
|
||||||
return view('sales.revenues.index', compact('revenues', 'customers', 'categories', 'accounts', 'transfer_cat_id'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
20
public/css/print.css
vendored
20
public/css/print.css
vendored
@ -348,13 +348,25 @@ th, td {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
.rp-border-top-1 {
|
.rp-border-top-1 {
|
||||||
border-top: 1px solid #3c3f72;
|
border-top: 1px solid #e5e5e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rp-border-bottom-1 {
|
.rp-border-bottom-1 {
|
||||||
border-bottom: 1px solid #3c3f72;
|
border-bottom: 1px solid #e5e5e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rp-border-top-1 {
|
||||||
|
border-top: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rp-border-0 {
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rp-border-collapse
|
||||||
|
{
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
.rp-float-left {
|
.rp-float-left {
|
||||||
float: left;
|
float: left;
|
||||||
@ -371,7 +383,3 @@ th, td {
|
|||||||
=========================================================
|
=========================================================
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="table-responsive overflow-auto mt-4">
|
<div class="table-responsive overflow-auto mt-4">
|
||||||
<table class="table align-items-center">
|
<table class="table align-items-center rp-border-collapse">
|
||||||
@include($class->views['table.header'])
|
@include($class->views['table.header'])
|
||||||
<tbody>
|
<tbody>
|
||||||
@if (!empty($class->rows[$table]))
|
@if (!empty($class->rows[$table]))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr class="rp-border-top-1">
|
||||||
<th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
|
<th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
|
||||||
@php $total_total = 0; @endphp
|
@php $total_total = 0; @endphp
|
||||||
@foreach($class->totals[$table] as $total)
|
@foreach($class->totals[$table] as $total)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
@php $row_total = 0; @endphp
|
@php $row_total = 0; @endphp
|
||||||
<tr>
|
<tr class="rp-border-top-1">
|
||||||
<td class="report-column rp-border-top-1">{{ $class->getTableRowList()[$id] }}</td>
|
<td class="report-column">{{ $class->getTableRowList()[$id] }}</td>
|
||||||
@foreach($items as $item)
|
@foreach($items as $item)
|
||||||
@php $row_total += $item; @endphp
|
@php $row_total += $item; @endphp
|
||||||
<td class="report-column text-right px-0 rp-border-top-1">@money($item, setting('default.currency'), true)</td>
|
<td class="report-column text-right px-0">@money($item, setting('default.currency'), true)</td>
|
||||||
@endforeach
|
@endforeach
|
||||||
<td class="report-column text-right rp-border-top-1">@money($row_total, setting('default.currency'), true)</td>
|
<td class="report-column text-right">@money($row_total, setting('default.currency'), true)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<tr class="row table-head-line">
|
<tr class="row table-head-line">
|
||||||
<th class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
<th class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
||||||
<th class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">@sortablelink('bill_number', trans_choice('general.numbers', 1), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
<th class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">@sortablelink('bill_number', trans_choice('general.numbers', 1), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2">@sortablelink('contact_name', trans_choice('general.vendors', 1))</th>
|
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-left">@sortablelink('contact_name', trans_choice('general.vendors', 1))</th>
|
||||||
<th class="col-md-2 col-lg-2 col-xl-2 d-none d-md-block text-right">@sortablelink('amount', trans('general.amount'))</th>
|
<th class="col-md-2 col-lg-2 col-xl-2 d-none d-md-block text-right">@sortablelink('amount', trans('general.amount'))</th>
|
||||||
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('billed_at', trans('bills.bill_date'))</th>
|
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('billed_at', trans('bills.bill_date'))</th>
|
||||||
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('due_at', trans('bills.due_date'))</th>
|
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('due_at', trans('bills.due_date'))</th>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
<tr class="row align-items-center border-top-1">
|
<tr class="row align-items-center border-top-1">
|
||||||
<td class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->bill_number) }}</td>
|
<td class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->bill_number) }}</td>
|
||||||
<td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block"><a class="col-aka text-success" href="{{ route('bills.show', $item->id) }}">{{ $item->bill_number }}</a></td>
|
<td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block"><a class="col-aka text-success" href="{{ route('bills.show', $item->id) }}">{{ $item->bill_number }}</a></td>
|
||||||
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2">{{ $item->contact_name }}</td>
|
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-left">{{ $item->contact_name }}</td>
|
||||||
<td class="col-md-2 col-lg-2 col-xl-2 d-none d-md-block text-right">@money($item->amount, $item->currency_code, true)</td>
|
<td class="col-md-2 col-lg-2 col-xl-2 d-none d-md-block text-right">@money($item->amount, $item->currency_code, true)</td>
|
||||||
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->billed_at)</td>
|
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->billed_at)</td>
|
||||||
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->due_at)</td>
|
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->due_at)</td>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<th class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
<th class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2">@sortablelink('paid_at', trans('general.date'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2">@sortablelink('paid_at', trans('general.date'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@sortablelink('amount', trans('general.amount'))</th>
|
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@sortablelink('amount', trans('general.amount'))</th>
|
||||||
<th class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block">@sortablelink('contact.name', trans_choice('general.vendors', 1))</th>
|
<th class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block text-left">@sortablelink('contact.name', trans_choice('general.vendors', 1))</th>
|
||||||
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-left">@sortablelink('category.name', trans_choice('general.categories', 1))</th>
|
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-left">@sortablelink('category.name', trans_choice('general.categories', 1))</th>
|
||||||
<th class="col-lg-2 col-xl-1 d-none d-lg-block text-left">@sortablelink('account.name', trans_choice('general.accounts', 1))</th>
|
<th class="col-lg-2 col-xl-1 d-none d-lg-block text-left">@sortablelink('account.name', trans_choice('general.accounts', 1))</th>
|
||||||
<th class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center"><a>{{ trans('general.actions') }}</a></th>
|
<th class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center"><a>{{ trans('general.actions') }}</a></th>
|
||||||
@ -47,7 +47,6 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($payments as $item)
|
@foreach($payments as $item)
|
||||||
@php $is_transfer = ($item->category && ($item->category->id == $transfer_cat_id)); @endphp
|
|
||||||
<tr class="row align-items-center border-top-1">
|
<tr class="row align-items-center border-top-1">
|
||||||
<td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->contact->name) }}</td>
|
<td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->contact->name) }}</td>
|
||||||
@if ($item->reconciled)
|
@if ($item->reconciled)
|
||||||
@ -56,11 +55,10 @@
|
|||||||
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2"><a class="col-aka text-success " href="{{ route('payments.edit', $item->id) }}">@date($item->paid_at)</a></td>
|
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2"><a class="col-aka text-success " href="{{ route('payments.edit', $item->id) }}">@date($item->paid_at)</a></td>
|
||||||
@endif
|
@endif
|
||||||
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@money($item->amount, $item->currency_code, true)</td>
|
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@money($item->amount, $item->currency_code, true)</td>
|
||||||
<td class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block">{{ !empty($item->contact->name) ? $item->contact->name : trans('general.na') }}</td>
|
<td class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block text-left">{{ $item->contact->name }}</td>
|
||||||
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-left">{{ $item->category ? $item->category->name : trans('general.na') }}</td>
|
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-left">{{ $item->category->name }}</td>
|
||||||
<td class="col-lg-2 col-xl-1 d-none d-lg-block text-left">{{ $item->account ? $item->account->name : trans('general.na') }}</td>
|
<td class="col-lg-2 col-xl-1 d-none d-lg-block text-left">{{ $item->account->name }}</td>
|
||||||
<td class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center">
|
<td class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center">
|
||||||
@if (!$is_transfer)
|
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a class="btn btn-neutral btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="btn btn-neutral btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="fa fa-ellipsis-h text-muted"></i>
|
<i class="fa fa-ellipsis-h text-muted"></i>
|
||||||
@ -81,13 +79,6 @@
|
|||||||
@endpermission
|
@endpermission
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
|
||||||
<div class="dropdown">
|
|
||||||
<button class="btn btn-white btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="tooltip" aria-haspopup="true" aria-expanded="false" title="This Transfer, If you want to action redirect">
|
|
||||||
<i class="fa fa-exchange-alt text-muted"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<div class="table-responsive overflow-auto mt-5">
|
<div class="table-responsive overflow-auto mt-5">
|
||||||
<table class="table align-items-center">
|
<table class="table align-items-center rp-border-collapse">
|
||||||
<tfoot class="border-top-style">
|
<tfoot class="border-top-style">
|
||||||
<tr>
|
<tr class="rp-border-top-1">
|
||||||
<th class="report-column rp-border-top-1">{{ trans('reports.net_profit') }}</th>
|
<th class="report-column">{{ trans('reports.net_profit') }}</th>
|
||||||
@foreach($class->net_profit as $profit)
|
@foreach($class->net_profit as $profit)
|
||||||
<th class="report-column text-right px-0 rp-border-top-1">@money($profit, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($profit, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="report-column text-right rp-border-top-1">
|
<th class="report-column text-right">
|
||||||
@money(array_sum($class->net_profit), setting('default.currency'), true)
|
@money(array_sum($class->net_profit), setting('default.currency'), true)
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<div class="table-responsive overflow-auto">
|
<div class="table-responsive overflow-auto">
|
||||||
<table class="table align-items-center">
|
<table class="table align-items-center rp-border-collapse">
|
||||||
<thead class="border-top-style">
|
<thead class="border-top-style">
|
||||||
<tr>
|
<tr class="rp-border-bottom-1">
|
||||||
<th class="report-column text-right rp-border-bottom-1"></th>
|
<th class="report-column text-right"></th>
|
||||||
@foreach($class->dates as $date)
|
@foreach($class->dates as $date)
|
||||||
<th class="report-column text-right px-0 rp-border-bottom-1">{{ $date }}</th>
|
<th class="report-column text-right px-0">{{ $date }}</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="report-column text-right rp-border-bottom-1">
|
<th class="report-column text-right">
|
||||||
{{ trans_choice('general.totals', 1) }}
|
{{ trans_choice('general.totals', 1) }}
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr class="rp-border-top-1">
|
||||||
<th class="report-column rp-border-top-1 text-left">{{ trans_choice('general.totals', 1) }}</th>
|
<th class="report-column text-left">{{ trans_choice('general.totals', 1) }}</th>
|
||||||
@php $total_total = 0; @endphp
|
@php $total_total = 0; @endphp
|
||||||
@foreach($class->totals[$table] as $date => $total)
|
@foreach($class->totals[$table] as $date => $total)
|
||||||
@php $total_total += $total; @endphp
|
@php $total_total += $total; @endphp
|
||||||
<th class="report-column text-right px-0 rp-border-top-1">@money($total, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="report-column text-right rp-border-top-1">@money($total_total, setting('default.currency'), true)</th>
|
<th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="table-responsive overflow-auto">
|
<div class="table-responsive overflow-auto">
|
||||||
<table class="table align-items-center">
|
<table class="table align-items-center rp-border-collapse">
|
||||||
<thead class="border-top-style">
|
<thead class="border-top-style">
|
||||||
<tr>
|
<tr>
|
||||||
<th class="report-column text-right rp-border-bottom-1"></th>
|
<th class="report-column text-right rp-border-bottom-1"></th>
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr class="rp-border-top-1">
|
||||||
<th class="report-column rp-border-top-1 text-left">{{ trans('reports.net') }}</th>
|
<th class="report-column text-left">{{ trans('reports.net') }}</th>
|
||||||
@php $total_total = 0; @endphp
|
@php $total_total = 0; @endphp
|
||||||
@foreach($class->totals[$table] as $total)
|
@foreach($class->totals[$table] as $total)
|
||||||
@php $total_total += $total; @endphp
|
@php $total_total += $total; @endphp
|
||||||
<th class="report-column text-right px-0 rp-border-top-1">@money($total, setting('default.currency'), true)</th>
|
<th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
|
||||||
@endforeach
|
@endforeach
|
||||||
<th class="report-column text-right rp-border-top-1">@money($total_total, setting('default.currency'), true)</th>
|
<th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<tr class="row table-head-line">
|
<tr class="row table-head-line">
|
||||||
<th class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
<th class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
||||||
<th class="col-md-2 col-lg-2 col-xl-1 d-none d-md-block">@sortablelink('invoice_number', trans_choice('general.numbers', 1), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
<th class="col-md-2 col-lg-2 col-xl-1 d-none d-md-block">@sortablelink('invoice_number', trans_choice('general.numbers', 1), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-4 col-lg-2 col-xl-3 text-center">@sortablelink('contact_name', trans_choice('general.customers', 1))</th>
|
<th class="col-xs-4 col-sm-4 col-md-4 col-lg-2 col-xl-3 text-left">@sortablelink('contact_name', trans_choice('general.customers', 1))</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-1 col-xl-1 text-right">@sortablelink('amount', trans('general.amount'))</th>
|
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-1 col-xl-1 text-right">@sortablelink('amount', trans('general.amount'))</th>
|
||||||
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('invoiced_at', trans('invoices.invoice_date'))</th>
|
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('invoiced_at', trans('invoices.invoice_date'))</th>
|
||||||
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('due_at', trans('invoices.due_date'))</th>
|
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@sortablelink('due_at', trans('invoices.due_date'))</th>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
<tr class="row align-items-center border-top-1">
|
<tr class="row align-items-center border-top-1">
|
||||||
<td class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->invoice_number) }}</td>
|
<td class="col-sm-2 col-md-1 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->invoice_number) }}</td>
|
||||||
<td class="col-md-2 col-lg-2 col-xl-1 d-none d-md-block"><a class="col-aka text-success" href="{{ route('invoices.show' , $item->id) }}">{{ $item->invoice_number }}</a></td>
|
<td class="col-md-2 col-lg-2 col-xl-1 d-none d-md-block"><a class="col-aka text-success" href="{{ route('invoices.show' , $item->id) }}">{{ $item->invoice_number }}</a></td>
|
||||||
<td class="col-xs-4 col-sm-4 col-md-4 col-lg-2 col-xl-3 text-center">{{ $item->contact_name }}</td>
|
<td class="col-xs-4 col-sm-4 col-md-4 col-lg-2 col-xl-3 text-left">{{ $item->contact_name }}</td>
|
||||||
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-1 col-xl-1 text-right">@money($item->amount, $item->currency_code, true)</td>
|
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-1 col-xl-1 text-right">@money($item->amount, $item->currency_code, true)</td>
|
||||||
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->invoiced_at)</td>
|
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->invoiced_at)</td>
|
||||||
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->due_at)</td>
|
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-right">@date($item->due_at)</td>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<th class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
<th class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionAllGroup() }}</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2">@sortablelink('paid_at', trans('general.date'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2">@sortablelink('paid_at', trans('general.date'), ['filter' => 'active, visible'], ['class' => 'col-aka', 'rel' => 'nofollow'])</th>
|
||||||
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@sortablelink('amount', trans('general.amount'))</th>
|
<th class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@sortablelink('amount', trans('general.amount'))</th>
|
||||||
<th class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block text-center">@sortablelink('contact.name', trans_choice('general.customers', 1))</th>
|
<th class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block text-left">@sortablelink('contact.name', trans_choice('general.customers', 1))</th>
|
||||||
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-left">@sortablelink('category.name', trans_choice('general.categories', 1))</th>
|
<th class="col-lg-2 col-xl-2 d-none d-lg-block text-left">@sortablelink('category.name', trans_choice('general.categories', 1))</th>
|
||||||
<th class="col-lg-2 col-xl-1 d-none d-lg-block text-left">@sortablelink('account.name', trans_choice('general.accounts', 1))</th>
|
<th class="col-lg-2 col-xl-1 d-none d-lg-block text-left">@sortablelink('account.name', trans_choice('general.accounts', 1))</th>
|
||||||
<th class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center"><a>{{ trans('general.actions') }}</a></th>
|
<th class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center"><a>{{ trans('general.actions') }}</a></th>
|
||||||
@ -47,7 +47,6 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($revenues as $item)
|
@foreach($revenues as $item)
|
||||||
@php $is_transfer = ($item->category && ($item->category->id == $transfer_cat_id)); @endphp
|
|
||||||
<tr class="row align-items-center border-top-1">
|
<tr class="row align-items-center border-top-1">
|
||||||
<td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->contact->name) }}</td>
|
<td class="col-sm-2 col-md-2 col-lg-1 col-xl-1 d-none d-sm-block">{{ Form::bulkActionGroup($item->id, $item->contact->name) }}</td>
|
||||||
@if ($item->reconciled)
|
@if ($item->reconciled)
|
||||||
@ -56,11 +55,10 @@
|
|||||||
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2"><a class="text-success col-aka" href="{{ route('revenues.edit', $item->id) }}">@date($item->paid_at)</a></td>
|
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2"><a class="text-success col-aka" href="{{ route('revenues.edit', $item->id) }}">@date($item->paid_at)</a></td>
|
||||||
@endif
|
@endif
|
||||||
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@money($item->amount, $item->currency_code, true)</td>
|
<td class="col-xs-4 col-sm-4 col-md-3 col-lg-2 col-xl-2 text-right">@money($item->amount, $item->currency_code, true)</td>
|
||||||
<td class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block text-center">{{ !empty($item->contact->name) ? $item->contact->name : trans('general.na') }}</td>
|
<td class="col-md-2 col-lg-2 col-xl-3 d-none d-md-block text-left">{{ $item->contact->name }}</td>
|
||||||
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-left">{{ $item->category ? $item->category->name : trans('general.na') }}</td>
|
<td class="col-lg-2 col-xl-2 d-none d-lg-block text-left">{{ $item->category->name }}</td>
|
||||||
<td class="col-lg-2 col-xl-1 d-none d-lg-block text-left">{{ $item->account ? $item->account->name : trans('general.na') }}</td>
|
<td class="col-lg-2 col-xl-1 d-none d-lg-block text-left">{{ $item->account->name }}</td>
|
||||||
<td class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center">
|
<td class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center">
|
||||||
@if (!$is_transfer)
|
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a class="btn btn-neutral btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="btn btn-neutral btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="fa fa-ellipsis-h text-muted"></i>
|
<i class="fa fa-ellipsis-h text-muted"></i>
|
||||||
@ -82,13 +80,6 @@
|
|||||||
@endpermission
|
@endpermission
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
|
||||||
<div class="dropdown">
|
|
||||||
<button class="btn btn-secondary btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="tooltip" aria-haspopup="true" aria-expanded="false" title="This Transfer, If you want to action redirect">
|
|
||||||
<i class="fa fa-exchange-alt text-muted"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
Loading…
x
Reference in New Issue
Block a user