-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Composer install yajra/laravel-datatables-fractal and yajra/laravel-datatables-oracle - Remove unnecessary stisla asset - Change login bg image - Create datatables view component
- Loading branch information
Showing
34 changed files
with
406 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fa fa-chevron-left"></i> <span>{{ __('Go back') }}</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fa fa-trash"></i> <span>{{ __('Delete') }}</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fa fa-info-circle"></i> <span>{{ __('Details') }}</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fa fa-edit"></i> <span>{{ __('Edit') }}</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="btn-group"> | ||
@foreach ($elements as $element) | ||
{!! $element !!} | ||
@endforeach | ||
</div> |
4 changes: 4 additions & 0 deletions
4
resources/views/components/datatables/button-row-child.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<button type="button" class="btn btn-icon btn-success btn-sm" title="row detail control" @isset($url) data-url="{{ $url }}" @endisset> | ||
<i class="fa fa-plus-circle" id="icon-show"></i> | ||
<i class="fa fa-minus-circle d-none" id="icon-hide"></i> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="text-center"> | ||
<div class="custom-checkbox custom-control"> | ||
<input type="checkbox" id="checkbox-all" class="custom-control-input" data-checkboxes="mygroup" data-checkbox-role="dad"> | ||
|
||
<label for="checkbox-all" class="custom-control-label"> </label> | ||
</div> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
resources/views/components/datatables/checkbox-delete.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<button type="submit" | ||
id="checkbox-delete-all" | ||
class="btn btn-danger" | ||
formaction="{{ $url }}" | ||
name="_method" | ||
value="DELETE" | ||
onclick="return confirm('{{ __('Are you sure you want to delete this data?') }}')" | ||
disabled> | ||
<i class="fa fa-trash-alt"></i> <span>{{ __('Delete Selected') }}</span> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="custom-checkbox custom-control text-center"> | ||
<input type="checkbox" name="{{ ($name ?? 'checkbox[]') }}" id="{{ ($id ?? 'checkbox_' . $value) }}" value="{{ $value }}" data-checkboxes="mygroup" class="custom-control-input checkbox-selected"> | ||
|
||
<label for="{{ ($id ?? 'checkbox_' . $value) }}" class="custom-control-label"> </label> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const datatable_language_url = '{{ asset(sprintf('node_modules/datatables.net-plugins/i18n/%s.json', App::getLocale())) }}'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{!! | ||
view('components.datatables.link', [ | ||
'url' => $url, | ||
'name' => view('components.datatables.button-back'), | ||
'class' => 'btn btn-secondary', | ||
])->render() | ||
!!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<a href="{{ $url }}" class="btn btn-danger" onclick="event.preventDefault(); if (confirm('{{ __('Are you sure you want to delete this data?') }}')) this.querySelector('form').submit();"> | ||
@include('components.datatables.button-delete') | ||
|
||
<form action="{{ $url }}" method="post"> | ||
@csrf | ||
@method('DELETE') | ||
</form> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{!! | ||
view('components.datatables.link', [ | ||
'url' => $url, | ||
'name' => view('components.datatables.button-edit'), | ||
'class' => 'btn btn-warning', | ||
])->render() | ||
!!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{!! | ||
view('components.datatables.link', [ | ||
'url' => $url, | ||
'name' => view('components.datatables.button-detail'), | ||
'class' => 'btn btn-info', | ||
])->render() | ||
!!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@php $is_new_tab ??= false @endphp | ||
|
||
<a href="{{ $url }}" @isset($class) class="{{ $class }}" @endisset @if ($is_new_tab) target="_blank" @endif>{!! $name !!}</a> |