laravel 8

This commit is contained in:
Denis Duliçi
2020-10-14 17:07:59 +03:00
parent b4e044b199
commit 1ba8835a2d
134 changed files with 3515 additions and 1952 deletions

View File

@ -71,13 +71,13 @@
</div>
</div>
@permission('update-sales-customers')
@can('update-sales-customers')
<div class="card-footer">
<div class="row save-buttons">
{{ Form::saveButtons('customers.index') }}
</div>
</div>
@endpermission
@endcan
{{ Form::hidden('type', 'customer') }}

View File

@ -3,10 +3,10 @@
@section('title', trans_choice('general.customers', 2))
@section('new_button')
@permission('create-sales-customers')
@can('create-sales-customers')
<a href="{{ route('customers.create') }}" class="btn btn-success btn-sm">{{ trans('general.add_new') }}</a>
<a href="{{ route('import.create', ['group' => 'sales', 'type' => 'customers']) }}" class="btn btn-white btn-sm">{{ trans('import.import') }}</a>
@endpermission
@endcan
<a href="{{ route('customers.export', request()->input()) }}" class="btn btn-white btn-sm header-button-top">{{ trans('general.export') }}</a>
@endsection
@ -84,14 +84,14 @@
<a class="dropdown-item" href="{{ route('customers.edit', $item->id) }}">{{ trans('general.edit') }}</a>
<div class="dropdown-divider"></div>
@permission('create-sales-customers')
@can('create-sales-customers')
<a class="dropdown-item" href="{{ route('customers.duplicate', $item->id) }}">{{ trans('general.duplicate') }}</a>
<div class="dropdown-divider"></div>
@endpermission
@permission('delete-sales-customers')
@endcan
@can('delete-sales-customers')
{!! Form::deleteLink($item, 'customers.destroy') !!}
@endpermission
@endcan
</div>
</div>
</td>

View File

@ -214,13 +214,13 @@
</div>
</div>
@permission('update-sales-invoices')
@can('update-sales-invoices')
<div class="card-footer">
<div class="row save-buttons">
{{ Form::saveButtons('invoices.index') }}
</div>
</div>
@endpermission
@endcan
{!! Form::close() !!}
</div>
@endsection

View File

@ -3,10 +3,10 @@
@section('title', trans_choice('general.invoices', 2))
@section('new_button')
@permission('create-sales-invoices')
@can('create-sales-invoices')
<a href="{{ route('invoices.create') }}" class="btn btn-primary btn-sm btn-success header-button-top">{{ trans('general.add_new') }}</a>
<a href="{{ route('import.create', ['group' => 'sales', 'type' => 'invoices']) }}" class="btn btn-white btn-sm header-button-top">{{ trans('import.import') }}</a>
@endpermission
@endcan
<a href="{{ route('invoices.export', request()->input()) }}" class="btn btn-white btn-sm header-button-top">{{ trans('general.export') }}</a>
@endsection
@ -72,21 +72,21 @@
<div class="dropdown-divider"></div>
@if ($item->status != 'cancelled')
@permission('create-sales-invoices')
@can('create-sales-invoices')
<a class="dropdown-item" href="{{ route('invoices.duplicate', $item->id) }}">{{ trans('general.duplicate') }}</a>
<div class="dropdown-divider"></div>
@endpermission
@endcan
@permission('update-sales-invoices')
@can('update-sales-invoices')
<a class="dropdown-item" href="{{ route('invoices.cancelled', $item->id) }}">{{ trans('general.cancel') }}</a>
@endpermission
@endcan
@endif
@permission('delete-sales-invoices')
@can('delete-sales-invoices')
@if (!$item->reconciled)
{!! Form::deleteLink($item, 'invoices.destroy') !!}
@endif
@endpermission
@endcan
</div>
</div>
</td>

View File

@ -100,7 +100,7 @@
<div class="mt-3">
@stack('timeline_body_send_invoice_body_button_sent_start')
@permission('update-sales-invoices')
@can('update-sales-invoices')
@if($invoice->status == 'draft')
<a href="{{ route('invoices.sent', $invoice->id) }}" class="btn btn-white btn-sm header-button-top">{{ trans('invoices.mark_sent') }}</a>
@else
@ -108,7 +108,7 @@
<span class="text-disabled">{{ trans('invoices.mark_sent') }}</span>
</button>
@endif
@endpermission
@endcan
@stack('timeline_body_send_invoice_body_button_sent_end')
@stack('timeline_body_send_invoice_body_button_email_start')
@ -161,9 +161,9 @@
<div class="mt-3">
@stack('timeline_body_get_paid_body_button_pay_start')
@permission('update-sales-invoices')
@can('update-sales-invoices')
<a href="{{ route('invoices.paid', $invoice->id) }}" class="btn btn-white btn-sm header-button-top">{{ trans('invoices.mark_paid') }}</a>
@endpermission
@endcan
@stack('timeline_body_get_paid_body_button_pay_end')
@stack('timeline_body_get_paid_body_button_payment_start')
@ -490,9 +490,9 @@
@if ($invoice->status != 'cancelled')
@if ($invoice->status != 'paid')
@stack('button_pay_start')
@permission('update-sales-invoices')
@can('update-sales-invoices')
<a class="dropdown-item" href="{{ route('invoices.paid', $invoice->id) }}">{{ trans('invoices.mark_paid') }}</a>
@endpermission
@endcan
@if (empty($invoice->paid) || ($invoice->paid != $invoice->amount))
<button class="dropdown-item" id="button-payment" @click="onPayment">{{ trans('invoices.add_payment') }}</button>
@ -503,7 +503,7 @@
@stack('button_dropdown_divider_1')
@permission('update-sales-invoices')
@can('update-sales-invoices')
@stack('button_sent_start')
@if ($invoice->status == 'draft')
<a class="dropdown-item" href="{{ route('invoices.sent', $invoice->id) }}">{{ trans('invoices.mark_sent') }}</a>
@ -511,7 +511,7 @@
<button type="button" class="dropdown-item" disabled="disabled"><span class="text-disabled">{{ trans('invoices.mark_sent') }}</span></button>
@endif
@stack('button_sent_end')
@endpermission
@endcan
@stack('button_email_start')
@if ($invoice->contact_email)
@ -528,23 +528,23 @@
<a class="dropdown-item" href="{{ route('invoices.pdf', $invoice->id) }}">{{ trans('invoices.download_pdf') }}</a>
@stack('button_pdf_end')
@permission('update-sales-invoices')
@can('update-sales-invoices')
@if ($invoice->status != 'cancelled')
@stack('button_cancelled_start')
<a class="dropdown-item" href="{{ route('invoices.cancelled', $invoice->id) }}">{{ trans('general.cancel') }}</a>
@stack('button_cancelled_end')
@endif
@endpermission
@endcan
@stack('button_dropdown_divider_2')
@permission('delete-sales-invoices')
@can('delete-sales-invoices')
@if (!$invoice->reconciled)
@stack('button_delete_start')
{!! Form::deleteLink($invoice, 'sales/invoices') !!}
@stack('button_delete_end')
@endif
@endpermission
@endcan
@stack('button_dropdown_end')
</div>
</div>

View File

@ -73,13 +73,13 @@
</div>
</div>
@permission('update-sales-revenues')
@can('update-sales-revenues')
<div class="card-footer">
<div class="row save-buttons">
{{ Form::saveButtons('revenues.index') }}
</div>
</div>
@endpermission
@endcan
{{ Form::hidden('type', 'income') }}
{!! Form::close() !!}

View File

@ -3,10 +3,10 @@
@section('title', trans_choice('general.revenues', 2))
@section('new_button')
@permission('create-sales-revenues')
@can('create-sales-revenues')
<a href="{{ route('revenues.create') }}" class="btn btn-success btn-sm">{{ trans('general.add_new') }}</a>
<a href="{{ route('import.create', ['group' => 'sales', 'type' => 'revenues']) }}" class="btn btn-white btn-sm">{{ trans('import.import') }}</a>
@endpermission
@endcan
<a href="{{ route('revenues.export', request()->input()) }}" class="btn btn-white btn-sm">{{ trans('general.export') }}</a>
@endsection
@ -93,15 +93,15 @@
<div class="dropdown-divider"></div>
@endif
@if (empty($item->document_id))
@permission('create-sales-revenues')
@can('create-sales-revenues')
<a class="dropdown-item" href="{{ route('revenues.duplicate', $item->id) }}">{{ trans('general.duplicate') }}</a>
<div class="dropdown-divider"></div>
@endpermission
@endcan
@endif
@if (!$item->reconciled)
@permission('delete-sales-revenues')
@can('delete-sales-revenues')
{!! Form::deleteLink($item, 'revenues.destroy') !!}
@endpermission
@endcan
@endif
</div>
</div>