Notification widgets styling..

This commit is contained in:
Cüneyt Şentürk 2021-06-27 14:47:59 +03:00
parent 1e18b19c56
commit 72e664ad0d
6 changed files with 613 additions and 569 deletions

View File

@ -31,7 +31,7 @@
@stack('bills_recurring') @stack('bills_recurring')
<livewire:common.notifications.recurring type="bill" text-title="widgets.recurring_bills" /> <livewire:common.notifications.recurring type="bill" text-title="notifications.recurring_bills" />
@stack('bills_reminder') @stack('bills_reminder')

View File

@ -1,13 +1,14 @@
@if ($notifications->total()) <div class="accordion" id="exports">
<div class="card" id="exports"> <div class="card">
<div class="card-header"> <div class="card-header" id="heading-exports" data-toggle="collapse" data-target="#collapse-exports"
aria-expanded="false" aria-controls="collapse-exports">
<div class="row align-items-center"> <div class="row align-items-center">
<div class="col-8"> <div class="col-12">
<h5 class="h3 mb-0">{{ trans('general.export') }}</h5> <h3 class="mb-0">
</div> {{ trans('general.export') }}
<div class="col-4 text-right"> @if ($notifications->total())
<button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm ml-2"
data-toggle="tooltip" data-toggle="tooltip"
data-placement="right" data-placement="right"
title="{{ trans('notifications.mark_read_all') }}" title="{{ trans('notifications.mark_read_all') }}"
@ -15,10 +16,14 @@
> >
<span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span>
</button> </button>
@endif
</h3>
</div> </div>
</div> </div>
</div> </div>
<div id="collapse-exports" class="collapse" aria-labelledby="heading-exports" data-parent="#exports">
@if ($notifications->total())
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-flush table-hover" id="tbl-export"> <table class="table table-flush table-hover" id="tbl-export">
<tbody> <tbody>
@ -77,7 +82,14 @@
</div> </div>
</div> </div>
@endif @endif
@else
<div class="col-xs-12 col-sm-12 mt-4 mb-4 text-center">
<small>{{ trans('general.no_records') }}</small>
</div> </div>
@endif
</div>
</div>
</div>
@push('body_js') @push('body_js')
<script type="text/javascript"> <script type="text/javascript">
@ -98,5 +110,3 @@
}); });
</script> </script>
@endpush @endpush
@endif

View File

@ -1,12 +1,13 @@
@if ($notifications->total()) <div class="accordion" id="imports">
<div class="card" id="imports"> <div class="card">
<div class="card-header"> <div class="card-header" id="heading-imports" data-toggle="collapse" data-target="#collapse-imports"
aria-expanded="false" aria-controls="collapse-imports">
<div class="row align-items-center"> <div class="row align-items-center">
<div class="col-8"> <div class="col-12">
<h5 class="h3 mb-0">{{ trans('import.import') }}</h5> <h3 class="mb-0">
</div> {{ trans('import.import') }}
<div class="col-4 text-right"> @if ($notifications->total())
<button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2"
data-toggle="tooltip" data-toggle="tooltip"
data-placement="right" data-placement="right"
@ -15,10 +16,14 @@
> >
<span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span>
</button> </button>
@endif
</h3>
</div> </div>
</div> </div>
</div> </div>
<div id="collapse-imports" class="collapse" aria-labelledby="heading-imports" data-parent="#imports">
@if ($notifications->total())
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-flush table-hover" id="tbl-import"> <table class="table table-flush table-hover" id="tbl-import">
<tbody> <tbody>
@ -78,9 +83,16 @@
</div> </div>
</div> </div>
@endif @endif
@else
<div class="col-xs-12 col-sm-12 mt-4 mb-4 text-center">
<small>{{ trans('general.no_records') }}</small>
</div> </div>
@endif
</div>
</div>
</div>
@push('body_js') @push('body_js')
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('mark-read', event => { window.addEventListener('mark-read', event => {
if (event.detail.type == 'import') { if (event.detail.type == 'import') {
@ -98,5 +110,4 @@
} }
}); });
</script> </script>
@endpush @endpush
@endif

View File

@ -3,7 +3,9 @@
<div class="card"> <div class="card">
<div class="card-header" id="heading-new-apps" data-toggle="collapse" data-target="#collapse-new-apps" aria-expanded="true" aria-controls="collapse-new-apps"> <div class="card-header" id="heading-new-apps" data-toggle="collapse" data-target="#collapse-new-apps" aria-expanded="true" aria-controls="collapse-new-apps">
<div class="align-items-center"> <div class="align-items-center">
<h4 class="mb-0">{{ trans_choice('notifications.new_apps', 2) }}</h4> <h3 class="mb-0">
{{ trans_choice('notifications.new_apps', 2) }}
</h3>
</div> </div>
</div> </div>

View File

@ -1,12 +1,13 @@
@if ($notifications->count()) <div class="accordion" id="recurring-{{$type}}">
<div class="card" id="recurring-{{$type}}"> <div class="card">
<div class="card-header"> <div class="card-header" id="heading-recurring-{{$type}}" data-toggle="collapse" data-target="#collapse-recurring-{{$type}}"
aria-expanded="false" aria-controls="collapse-recurring-{{$type}}">
<div class="row align-items-center"> <div class="row align-items-center">
<div class="col-8"> <div class="col-12">
<h5 class="h3 mb-0">{{ trans($textTitle) }}</h5> <h3 class="mb-0">
</div> {{ trans($textTitle) }}
<div class="col-4 text-right"> @if ($notifications->total())
<button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2"
data-toggle="tooltip" data-toggle="tooltip"
data-placement="right" data-placement="right"
@ -15,10 +16,14 @@
> >
<span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span>
</button> </button>
@endif
</h3>
</div> </div>
</div> </div>
</div> </div>
<div id="collapse-recurring-{{$type}}" class="collapse" aria-labelledby="heading-recurring-{{$type}}" data-parent="#recurring-{{$type}}">
@if ($notifications->total())
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-flush table-hover" id="tbl-recurring-{{ $type }}"> <table class="table table-flush table-hover" id="tbl-recurring-{{ $type }}">
<thead class="thead-light"> <thead class="thead-light">
@ -221,9 +226,16 @@
</div> </div>
</div> </div>
@endif @endif
@else
<div class="col-xs-12 col-sm-12 mt-4 mb-4 text-center">
<small>{{ trans('general.no_records') }}</small>
</div> </div>
@endif
</div>
</div>
</div>
@push('body_js') @push('body_js')
<script type="text/javascript"> <script type="text/javascript">
window.addEventListener('mark-read', event => { window.addEventListener('mark-read', event => {
if (event.detail.type == 'recurring-{{ $type }}') { if (event.detail.type == 'recurring-{{ $type }}') {
@ -241,5 +253,4 @@
} }
}); });
</script> </script>
@endpush @endpush
@endif

View File

@ -1,12 +1,13 @@
@if ($notifications->count()) <div class="accordion" id="reminder-{{$type}}">
<div class="card" id="reminder-{{$type}}"> <div class="card">
<div class="card-header"> <div class="card-header" id="heading-reminder-{{$type}}" data-toggle="collapse" data-target="#collapse-reminder-{{$type}}"
aria-expanded="false" aria-controls="collapse-reminder-{{$type}}">
<div class="row align-items-center"> <div class="row align-items-center">
<div class="col-8"> <div class="col-12">
<h5 class="h3 mb-0">{{ trans($textTitle) }}</h5> <h3 class="mb-0">
</div> {{ trans($textTitle) }}
<div class="col-4 text-right"> @if ($notifications->total())
<button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2" <button type="button" class="btn btn-outline-success rounded-circle btn-icon-only btn-sm mr-2"
data-toggle="tooltip" data-toggle="tooltip"
data-placement="right" data-placement="right"
@ -15,10 +16,14 @@
> >
<span class="btn-inner--icon"><i class="fas fa-check-double"></i></span> <span class="btn-inner--icon"><i class="fas fa-check-double"></i></span>
</button> </button>
@endif
</h3>
</div> </div>
</div> </div>
</div> </div>
<div id="collapse-reminder-{{$type}}" class="collapse" aria-labelledby="heading-reminder-{{$type}}" data-parent="#reminder-{{$type}}">
@if ($notifications->total())
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-flush table-hover" id="tbl-reminder-{{ $type }}"> <table class="table table-flush table-hover" id="tbl-reminder-{{ $type }}">
<thead class="thead-light"> <thead class="thead-light">
@ -221,7 +226,14 @@
</div> </div>
</div> </div>
@endif @endif
@else
<div class="col-xs-12 col-sm-12 mt-4 mb-4 text-center">
<small>{{ trans('general.no_records') }}</small>
</div> </div>
@endif
</div>
</div>
</div>
@push('body_js') @push('body_js')
<script type="text/javascript"> <script type="text/javascript">
@ -242,5 +254,3 @@
}); });
</script> </script>
@endpush @endpush
@endif