New notification page..
This commit is contained in:
		
							
								
								
									
										105
									
								
								resources/views/livewire/common/notifications/exports.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										105
									
								
								resources/views/livewire/common/notifications/exports.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,105 @@ | ||||
| @if ($notifications->total()) | ||||
|     <div class="card" id="export"> | ||||
|         <div class="card-header"> | ||||
|             <div class="row align-items-center"> | ||||
|                 <div class="col-8"> | ||||
|                     <h5 class="h3 mb-0">{{ trans('general.export') }}</h5> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="col-4 text-right"> | ||||
|                     <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" | ||||
|                         data-toggle="tooltip" | ||||
|                         data-placement="right" | ||||
|                         title="{{ trans('notifications.mark_read_all') }}" | ||||
|                         wire:click="markReadAll()" | ||||
|                     > | ||||
|                         <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> | ||||
|                     </button> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <div class="table-responsive"> | ||||
|             <table class="table table-flush table-hover" id="tbl-export"> | ||||
|                 <tbody> | ||||
|                     @foreach ($notifications as $notification) | ||||
|                         <tr class="row align-items-center border-top-1"> | ||||
|                             <td class="col-xs-8 col-sm-10 col-md-10 col-lg-11 col-xl-11 text-left"> | ||||
|                                 @if (empty($notification->message)) | ||||
|                                     {!! trans('notifications.messages.export', [ | ||||
|                                         'type' => $notification->translation, | ||||
|                                         'file_name' => $notification->file_name, | ||||
|                                         'url' => $notification->download_url | ||||
|                                     ]) !!} | ||||
|                                 @else | ||||
|                                     {!! $notification->message !!} | ||||
|                                 @endif | ||||
|                             </td> | ||||
|  | ||||
|                             <td class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center"> | ||||
|                                 <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm" | ||||
|                                     data-toggle="tooltip" | ||||
|                                     data-placement="right" | ||||
|                                     title="{{ trans('notifications.mark_read') }}" | ||||
|                                     wire:click="markRead('{{ $notification->notification_id }}')" | ||||
|                                 > | ||||
|                                     <span class="btn-inner--icon"><i class="fa fa-check"></i></span> | ||||
|                                 </button> | ||||
|                             </td> | ||||
|                         </tr> | ||||
|                     @endforeach | ||||
|                 </tbody> | ||||
|             </table> | ||||
|         </div> | ||||
|  | ||||
|         @if ($notifications->total() > 5) | ||||
|             <div class="card-footer table-action"> | ||||
|                 <div class="row"> | ||||
|                     @if ($notifications->count()) | ||||
|                         <div class="col-xs-12 col-sm-5 d-flex align-items-center"> | ||||
|                             {!! Form::select('limit', ['5' => '5'], request('limit', 5), ['class' => 'disabled form-control form-control-sm d-inline-block w-auto d-none d-md-block', 'disabled' => 'disabled']) !!} | ||||
|                             <span class="table-text d-none d-lg-block ml-2"> | ||||
|                                 {{ trans('pagination.page') }} | ||||
|                                 {{ trans('pagination.showing', ['first' => $notifications->firstItem(), 'last' => $notifications->lastItem(), 'total' => $notifications->total()]) }} | ||||
|                             </span> | ||||
|                         </div> | ||||
|  | ||||
|                         <div class="col-xs-12 col-sm-7 pagination-xs"> | ||||
|                             <nav class="float-right"> | ||||
|                                 {!! $notifications->withPath(request()->url())->withQueryString()->links() !!} | ||||
|                             </nav> | ||||
|                         </div> | ||||
|                     @else | ||||
|                         <div class="col-xs-12 col-sm-12" id="datatable-basic_info" role="status" aria-live="polite"> | ||||
|                             <small>{{ trans('general.no_records') }}</small> | ||||
|                         </div> | ||||
|                     @endif | ||||
|                 </div> | ||||
|             </div> | ||||
|         @endif | ||||
|     </div> | ||||
| @endif | ||||
|  | ||||
| @push('scripts_start') | ||||
|     <script src="{{ asset('public/vendor/bootstrap-notify/bootstrap-notify.min.js') }}"></script> | ||||
| @endpush | ||||
|  | ||||
| @push('body_js') | ||||
|     <script type="text/javascript"> | ||||
|         window.addEventListener('mark-read', event => { | ||||
|             if (event.detail.type == 'export') { | ||||
|                 $.notify(event.detail.message, { | ||||
|                     type: 'success', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|  | ||||
|         window.addEventListener('mark-read-all', event => { | ||||
|             if (event.detail.type == 'export') { | ||||
|                 $.notify(event.detail.message, { | ||||
|                     type: 'success', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|     </script> | ||||
| @endpush | ||||
							
								
								
									
										105
									
								
								resources/views/livewire/common/notifications/imports.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										105
									
								
								resources/views/livewire/common/notifications/imports.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,105 @@ | ||||
| @if ($notifications->total()) | ||||
|     <div class="card" id="export"> | ||||
|         <div class="card-header"> | ||||
|             <div class="row align-items-center"> | ||||
|                 <div class="col-8"> | ||||
|                     <h5 class="h3 mb-0">{{ trans('general.export') }}</h5> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="col-4 text-right"> | ||||
|                     <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" | ||||
|                         data-toggle="tooltip" | ||||
|                         data-placement="right" | ||||
|                         title="{{ trans('notifications.mark_read_all') }}" | ||||
|                         wire:click="markReadAll()" | ||||
|                     > | ||||
|                         <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> | ||||
|                     </button> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <div class="table-responsive"> | ||||
|             <table class="table table-flush table-hover" id="tbl-export"> | ||||
|                 <tbody> | ||||
|                     @foreach ($notifications as $notification) | ||||
|                         <tr class="row align-items-center border-top-1"> | ||||
|                             <td class="col-xs-8 col-sm-10 col-md-10 col-lg-11 col-xl-11 text-left"> | ||||
|                                 @if (empty($notification->message)) | ||||
|                                     {!! trans('notifications.messages.export', [ | ||||
|                                         'type' => $notification->translation, | ||||
|                                         'file_name' => $notification->file_name, | ||||
|                                         'url' => $notification->download_url | ||||
|                                     ]) !!} | ||||
|                                 @else | ||||
|                                     {!! $notification->message !!} | ||||
|                                 @endif | ||||
|                             </td> | ||||
|  | ||||
|                             <td class="col-xs-4 col-sm-2 col-md-2 col-lg-1 col-xl-1 text-center"> | ||||
|                                 <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm" | ||||
|                                     data-toggle="tooltip" | ||||
|                                     data-placement="right" | ||||
|                                     title="{{ trans('notifications.mark_read') }}" | ||||
|                                     wire:click="markRead('{{ $notification->notification_id }}')" | ||||
|                                 > | ||||
|                                     <span class="btn-inner--icon"><i class="fa fa-check"></i></span> | ||||
|                                 </button> | ||||
|                             </td> | ||||
|                         </tr> | ||||
|                     @endforeach | ||||
|                 </tbody> | ||||
|             </table> | ||||
|         </div> | ||||
|  | ||||
|         @if ($notifications->total() > 5) | ||||
|             <div class="card-footer table-action"> | ||||
|                 <div class="row"> | ||||
|                     @if ($notifications->count()) | ||||
|                         <div class="col-xs-12 col-sm-5 d-flex align-items-center"> | ||||
|                             {!! Form::select('limit', ['5' => '5'], request('limit', 5), ['class' => 'disabled form-control form-control-sm d-inline-block w-auto d-none d-md-block', 'disabled' => 'disabled']) !!} | ||||
|                             <span class="table-text d-none d-lg-block ml-2"> | ||||
|                                 {{ trans('pagination.page') }} | ||||
|                                 {{ trans('pagination.showing', ['first' => $notifications->firstItem(), 'last' => $notifications->lastItem(), 'total' => $notifications->total()]) }} | ||||
|                             </span> | ||||
|                         </div> | ||||
|  | ||||
|                         <div class="col-xs-12 col-sm-7 pagination-xs"> | ||||
|                             <nav class="float-right"> | ||||
|                                 {!! $notifications->withPath(request()->url())->withQueryString()->links() !!} | ||||
|                             </nav> | ||||
|                         </div> | ||||
|                     @else | ||||
|                         <div class="col-xs-12 col-sm-12" id="datatable-basic_info" role="status" aria-live="polite"> | ||||
|                             <small>{{ trans('general.no_records') }}</small> | ||||
|                         </div> | ||||
|                     @endif | ||||
|                 </div> | ||||
|             </div> | ||||
|         @endif | ||||
|     </div> | ||||
| @endif | ||||
|  | ||||
| @push('scripts_start') | ||||
|     <script src="{{ asset('public/vendor/bootstrap-notify/bootstrap-notify.min.js') }}"></script> | ||||
| @endpush | ||||
|  | ||||
| @push('body_js') | ||||
|     <script type="text/javascript"> | ||||
|         window.addEventListener('mark-read', event => { | ||||
|             if (event.detail.type == 'import') { | ||||
|                 $.notify(event.detail.message, { | ||||
|                     type: 'success', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|  | ||||
|         window.addEventListener('mark-read-all', event => { | ||||
|             if (event.detail.type == 'import') { | ||||
|                 $.notify(event.detail.message, { | ||||
|                     type: 'success', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|     </script> | ||||
| @endpush | ||||
| @@ -0,0 +1,7 @@ | ||||
| <div class="card"> | ||||
|     <div class="card-header"></div> | ||||
|  | ||||
|     <div class="card-body"> | ||||
|  | ||||
|     </div> | ||||
| </div> | ||||
| @@ -0,0 +1,213 @@ | ||||
| @if ($documents->count()) | ||||
|     <div class="card"> | ||||
|         <div class="card-header"> | ||||
|             <div class="row align-items-center"> | ||||
|                 <div class="col-8"> | ||||
|                     <h5 class="h3 mb-0">Card title</h5> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="col-4 text-right"> | ||||
|                     <a href="#!" class="btn btn-sm btn-neutral">Action</a> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <div class="table-responsive"> | ||||
|             <table class="table table-flush table-hover" id="tbl-reminder-invoices"> | ||||
|                 <thead class="thead-light"> | ||||
|                     <tr class="row table-head-line"> | ||||
|                         @stack('document_number_th_start') | ||||
|                         @if (!$hideDocumentNumber) | ||||
|                             <th class="{{ $classDocumentNumber }}"> | ||||
|                                 @stack('document_number_th_inside_start') | ||||
|          | ||||
|                                 {{ trans_choice($textDocumentNumber, 1) }} | ||||
|          | ||||
|                                 @stack('document_number_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('document_number_th_end') | ||||
|          | ||||
|                         @stack('contact_name_th_start') | ||||
|                         @if (!$hideContactName) | ||||
|                             <th class="{{ $classContactName }}"> | ||||
|                                 @stack('contact_name_th_inside_start') | ||||
|          | ||||
|                                 {{ trans_choice($textContactName, 1) }} | ||||
|          | ||||
|                                 @stack('contact_name_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('contact_name_th_end') | ||||
|          | ||||
|                         @stack('amount_th_start') | ||||
|                         @if (!$hideAmount) | ||||
|                             <th class="{{ $classAmount }}"> | ||||
|                                 @stack('amount_th_inside_start') | ||||
|          | ||||
|                                 {{ trans('general.amount') }} | ||||
|          | ||||
|                                 @stack('amount_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('amount_th_end') | ||||
|          | ||||
|                         @stack('issued_at_th_start') | ||||
|                         @if (!$hideIssuedAt) | ||||
|                             <th class="{{ $classIssuedAt }}"> | ||||
|                                 @stack('issued_at_th_inside_start') | ||||
|          | ||||
|                                 {{ trans($textIssuedAt) }} | ||||
|          | ||||
|                                 @stack('issued_at_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('issued_at_th_end') | ||||
|          | ||||
|                         @stack('due_at_th_start') | ||||
|                         @if (!$hideDueAt) | ||||
|                             <th class="{{ $classDueAt }}"> | ||||
|                                 @stack('due_at_th_inside_start') | ||||
|          | ||||
|                                 {{ trans($textDueAt) }} | ||||
|          | ||||
|                                 @stack('due_at_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('due_at_th_end') | ||||
|          | ||||
|                         @stack('status_th_start') | ||||
|                         @if (!$hideStatus) | ||||
|                             <th class="{{ $classStatus }}"> | ||||
|                                 @stack('status_th_inside_start') | ||||
|          | ||||
|                                 {{ trans_choice('general.statuses', 1) }} | ||||
|          | ||||
|                                 @stack('status_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('status_th_end') | ||||
|          | ||||
|                         @if (!$hideActions) | ||||
|                             <th class="{{ $classActions }}"> | ||||
|                                 <a>{{ trans('general.actions') }}</a> | ||||
|                             </th> | ||||
|                         @endif | ||||
|                     </tr> | ||||
|                 </thead> | ||||
|          | ||||
|                 <tbody> | ||||
|                     @foreach($documents as $item) | ||||
|                         <tr class="row align-items-center border-top-1"> | ||||
|                             @stack('document_number_td_start') | ||||
|                             @if (!$hideDocumentNumber) | ||||
|                                 <td class="{{ $classDocumentNumber }}"> | ||||
|                                     @stack('document_number_td_inside_start') | ||||
|          | ||||
|                                     <a href="{{ route($routeButtonShow , $item->id) }}" target="_blank">{{ $item->document_number }}</a> | ||||
|          | ||||
|                                     @stack('document_number_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('document_number_td_end') | ||||
|          | ||||
|                             @stack('contact_name_td_start') | ||||
|                             @if (!$hideContactName) | ||||
|                                 <td class="{{ $classContactName }}"> | ||||
|                                     @stack('contact_name_td_inside_start') | ||||
|          | ||||
|                                     {{ $item->contact_name }} | ||||
|          | ||||
|                                     @stack('contact_name_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('contact_name_td_end') | ||||
|          | ||||
|                             @stack('amount_td_start') | ||||
|                             @if (!$hideAmount) | ||||
|                                 <td class="{{ $classAmount }}"> | ||||
|                                     @stack('amount_td_inside_start') | ||||
|          | ||||
|                                     @money($item->amount, $item->currency_code, true) | ||||
|          | ||||
|                                     @stack('amount_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('amount_td_end') | ||||
|          | ||||
|                             @stack('issued_at_td_start') | ||||
|                             @if (!$hideIssuedAt) | ||||
|                                 <td class="{{ $classIssuedAt }}"> | ||||
|                                     @stack('issued_at_td_inside_start') | ||||
|          | ||||
|                                     @date($item->issued_at) | ||||
|          | ||||
|                                     @stack('issued_at_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('issued_at_td_end') | ||||
|          | ||||
|                             @stack('due_at_td_start') | ||||
|                             @if (!$hideDueAt) | ||||
|                                 <td class="{{ $classDueAt }}"> | ||||
|                                     @stack('due_at_td_inside_start') | ||||
|          | ||||
|                                     @date($item->due_at) | ||||
|          | ||||
|                                     @stack('due_at_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('due_at_td_end') | ||||
|          | ||||
|                             @stack('status_td_start') | ||||
|                             @if (!$hideStatus) | ||||
|                                 <td class="{{ $classStatus }}"> | ||||
|                                     @stack('status_td_inside_start') | ||||
|          | ||||
|                                     <span class="badge badge-pill badge-{{ $item->status_label }}">{{ trans($textDocumentStatus . $item->status) }}</span> | ||||
|          | ||||
|                                     @stack('status_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('status_td_end') | ||||
|          | ||||
|                             @if (!$hideActions) | ||||
|                                 <td class="{{ $classActions }}"> | ||||
|                                     <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm"> | ||||
|                                         <span class="btn-inner--icon"><i class="fa fa-check"></i></span> | ||||
|                                     </button> | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                         </tr> | ||||
|                     @endforeach | ||||
|                 </tbody> | ||||
|             </table> | ||||
|         </div> | ||||
|  | ||||
|         @if ($documents->total() > 5) | ||||
|             <div class="card-footer table-action"> | ||||
|                 <div class="row"> | ||||
|                     @if ($documents->count()) | ||||
|                         <div class="col-xs-12 col-sm-5 d-flex align-items-center"> | ||||
|                             {!! Form::select('limit', ['5' => '5'], request('limit', setting('default.list_limit', '25')), ['class' => 'disabled form-control form-control-sm d-inline-block w-auto d-none d-md-block', 'disabled' => 'disabled']) !!} | ||||
|                             <span class="table-text d-none d-lg-block ml-2"> | ||||
|                                 {{ trans('pagination.page') }} | ||||
|                                 {{ trans('pagination.showing', ['first' => $documents->firstItem(), 'last' => $documents->lastItem(), 'total' => $documents->total()]) }} | ||||
|                             </span> | ||||
|                         </div> | ||||
|  | ||||
|                         <div class="col-xs-12 col-sm-7 pagination-xs"> | ||||
|                             <nav class="float-right"> | ||||
|                                 {!! $documents->withPath(request()->url())->withQueryString()->links() !!} | ||||
|                             </nav> | ||||
|                         </div> | ||||
|                     @else | ||||
|                         <div class="col-xs-12 col-sm-12" id="datatable-basic_info" role="status" aria-live="polite"> | ||||
|                             <small>{{ trans('general.no_records') }}</small> | ||||
|                         </div> | ||||
|                     @endif | ||||
|                 </div> | ||||
|             </div> | ||||
|         @endif | ||||
|     </div> | ||||
| @endif | ||||
							
								
								
									
										249
									
								
								resources/views/livewire/common/notifications/reminder.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										249
									
								
								resources/views/livewire/common/notifications/reminder.blade.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,249 @@ | ||||
| @if ($documents->count()) | ||||
|     <div class="card"> | ||||
|         <div class="card-header"> | ||||
|             <div class="row align-items-center"> | ||||
|                 <div class="col-8"> | ||||
|                     <h5 class="h3 mb-0">{{ trans($textTitle) }}</h5> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="col-4 text-right"> | ||||
|                     <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" | ||||
|                         data-toggle="tooltip" | ||||
|                         data-placement="right" | ||||
|                         title="{{ trans('notifications.mark_read_all') }}" | ||||
|                         wire:click="markReadAll()" | ||||
|                     > | ||||
|                         <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> | ||||
|                     </button> | ||||
|                 </div> | ||||
|             </div> | ||||
|         </div> | ||||
|  | ||||
|         <div class="table-responsive"> | ||||
|             <table class="table table-flush table-hover" id="tbl-reminder-{{ $type }}"> | ||||
|                 <thead class="thead-light"> | ||||
|                     <tr class="row table-head-line"> | ||||
|                         @stack('document_number_th_start') | ||||
|                         @if (!$hideDocumentNumber) | ||||
|                             <th class="{{ $classDocumentNumber }}"> | ||||
|                                 @stack('document_number_th_inside_start') | ||||
|  | ||||
|                                 {{ trans_choice($textDocumentNumber, 1) }} | ||||
|  | ||||
|                                 @stack('document_number_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('document_number_th_end') | ||||
|  | ||||
|                         @stack('contact_name_th_start') | ||||
|                         @if (!$hideContactName) | ||||
|                             <th class="{{ $classContactName }}"> | ||||
|                                 @stack('contact_name_th_inside_start') | ||||
|  | ||||
|                                 {{ trans_choice($textContactName, 1) }} | ||||
|  | ||||
|                                 @stack('contact_name_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('contact_name_th_end') | ||||
|  | ||||
|                         @stack('amount_th_start') | ||||
|                         @if (!$hideAmount) | ||||
|                             <th class="{{ $classAmount }}"> | ||||
|                                 @stack('amount_th_inside_start') | ||||
|  | ||||
|                                 {{ trans('general.amount') }} | ||||
|  | ||||
|                                 @stack('amount_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('amount_th_end') | ||||
|  | ||||
|                         @stack('issued_at_th_start') | ||||
|                         @if (!$hideIssuedAt) | ||||
|                             <th class="{{ $classIssuedAt }}"> | ||||
|                                 @stack('issued_at_th_inside_start') | ||||
|  | ||||
|                                 {{ trans($textIssuedAt) }} | ||||
|  | ||||
|                                 @stack('issued_at_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('issued_at_th_end') | ||||
|  | ||||
|                         @stack('due_at_th_start') | ||||
|                         @if (!$hideDueAt) | ||||
|                             <th class="{{ $classDueAt }}"> | ||||
|                                 @stack('due_at_th_inside_start') | ||||
|  | ||||
|                                 {{ trans($textDueAt) }} | ||||
|  | ||||
|                                 @stack('due_at_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('due_at_th_end') | ||||
|  | ||||
|                         @stack('status_th_start') | ||||
|                         @if (!$hideStatus) | ||||
|                             <th class="{{ $classStatus }}"> | ||||
|                                 @stack('status_th_inside_start') | ||||
|  | ||||
|                                 {{ trans_choice('general.statuses', 1) }} | ||||
|  | ||||
|                                 @stack('status_th_inside_end') | ||||
|                             </th> | ||||
|                         @endif | ||||
|                         @stack('status_th_end') | ||||
|  | ||||
|                         @if (!$hideActions) | ||||
|                             <th class="{{ $classActions }}"> | ||||
|                                 <a>{{ trans_choice('notifications.reads', 1) }}</a> | ||||
|                             </th> | ||||
|                         @endif | ||||
|                     </tr> | ||||
|                 </thead> | ||||
|  | ||||
|                 <tbody> | ||||
|                     @foreach($documents as $item) | ||||
|                         <tr class="row align-items-center border-top-1"> | ||||
|                             @stack('document_number_td_start') | ||||
|                             @if (!$hideDocumentNumber) | ||||
|                                 <td class="{{ $classDocumentNumber }}"> | ||||
|                                     @stack('document_number_td_inside_start') | ||||
|          | ||||
|                                     <a href="{{ route($routeButtonShow , $item->id) }}" target="_blank">{{ $item->document_number }}</a> | ||||
|          | ||||
|                                     @stack('document_number_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('document_number_td_end') | ||||
|          | ||||
|                             @stack('contact_name_td_start') | ||||
|                             @if (!$hideContactName) | ||||
|                                 <td class="{{ $classContactName }}"> | ||||
|                                     @stack('contact_name_td_inside_start') | ||||
|          | ||||
|                                     {{ $item->contact_name }} | ||||
|          | ||||
|                                     @stack('contact_name_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('contact_name_td_end') | ||||
|          | ||||
|                             @stack('amount_td_start') | ||||
|                             @if (!$hideAmount) | ||||
|                                 <td class="{{ $classAmount }}"> | ||||
|                                     @stack('amount_td_inside_start') | ||||
|          | ||||
|                                     @money($item->amount, $item->currency_code, true) | ||||
|          | ||||
|                                     @stack('amount_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('amount_td_end') | ||||
|          | ||||
|                             @stack('issued_at_td_start') | ||||
|                             @if (!$hideIssuedAt) | ||||
|                                 <td class="{{ $classIssuedAt }}"> | ||||
|                                     @stack('issued_at_td_inside_start') | ||||
|          | ||||
|                                     @date($item->issued_at) | ||||
|          | ||||
|                                     @stack('issued_at_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('issued_at_td_end') | ||||
|  | ||||
|                             @stack('due_at_td_start') | ||||
|                             @if (!$hideDueAt) | ||||
|                                 <td class="{{ $classDueAt }}"> | ||||
|                                     @stack('due_at_td_inside_start') | ||||
|  | ||||
|                                     @date($item->due_at) | ||||
|  | ||||
|                                     @stack('due_at_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('due_at_td_end') | ||||
|  | ||||
|                             @stack('status_td_start') | ||||
|                             @if (!$hideStatus) | ||||
|                                 <td class="{{ $classStatus }}"> | ||||
|                                     @stack('status_td_inside_start') | ||||
|  | ||||
|                                     <span class="badge badge-pill badge-{{ $item->status_label }}">{{ trans($textDocumentStatus . $item->status) }}</span> | ||||
|  | ||||
|                                     @stack('status_td_inside_end') | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                             @stack('status_td_end') | ||||
|  | ||||
|                             @if (!$hideActions) | ||||
|                                 <td class="{{ $classActions }}"> | ||||
|                                     <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm" | ||||
|                                         data-toggle="tooltip" | ||||
|                                         data-placement="right" | ||||
|                                         title="{{ trans('notifications.mark_read') }}" | ||||
|                                         wire:click="markRead('{{ $item->notification_id }}')" | ||||
|                                     > | ||||
|                                         <span class="btn-inner--icon"><i class="fa fa-check"></i></span> | ||||
|                                     </button> | ||||
|                                 </td> | ||||
|                             @endif | ||||
|                         </tr> | ||||
|                     @endforeach | ||||
|                 </tbody> | ||||
|             </table> | ||||
|         </div> | ||||
|  | ||||
|         @if ($documents->total() > 5) | ||||
|             <div class="card-footer table-action"> | ||||
|                 <div class="row"> | ||||
|                     @if ($documents->count()) | ||||
|                         <div class="col-xs-12 col-sm-5 d-flex align-items-center"> | ||||
|                             {!! Form::select('limit', ['5' => '5'], request('limit', 5), ['class' => 'disabled form-control form-control-sm d-inline-block w-auto d-none d-md-block', 'disabled' => 'disabled']) !!} | ||||
|                             <span class="table-text d-none d-lg-block ml-2"> | ||||
|                                 {{ trans('pagination.page') }} | ||||
|                                 {{ trans('pagination.showing', ['first' => $documents->firstItem(), 'last' => $documents->lastItem(), 'total' => $documents->total()]) }} | ||||
|                             </span> | ||||
|                         </div> | ||||
|  | ||||
|                         <div class="col-xs-12 col-sm-7 pagination-xs"> | ||||
|                             <nav class="float-right"> | ||||
|                                 {!! $documents->withPath(request()->url())->withQueryString()->links() !!} | ||||
|                             </nav> | ||||
|                         </div> | ||||
|                     @else | ||||
|                         <div class="col-xs-12 col-sm-12" id="datatable-basic_info" role="status" aria-live="polite"> | ||||
|                             <small>{{ trans('general.no_records') }}</small> | ||||
|                         </div> | ||||
|                     @endif | ||||
|                 </div> | ||||
|             </div> | ||||
|         @endif | ||||
|     </div> | ||||
| @endif | ||||
|  | ||||
| @push('scripts_start') | ||||
|     <script src="{{ asset('public/vendor/bootstrap-notify/bootstrap-notify.min.js') }}"></script> | ||||
| @endpush | ||||
|  | ||||
| @push('body_js') | ||||
|     <script type="text/javascript"> | ||||
|         window.addEventListener('mark-read', event => { | ||||
|             if (event.detail.type == '{{ $type }}') { | ||||
|                 $.notify(event.detail.message, { | ||||
|                     type: 'success', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|  | ||||
|         window.addEventListener('mark-read-all', event => { | ||||
|             if (event.detail.type == '{{ $type }}') { | ||||
|                 $.notify(event.detail.message, { | ||||
|                     type: 'success', | ||||
|                 }); | ||||
|             } | ||||
|         }); | ||||
|     </script> | ||||
| @endpush | ||||
		Reference in New Issue
	
	Block a user