Import notification file and updated other file..

This commit is contained in:
Cüneyt Şentürk
2021-06-19 22:30:14 +03:00
parent 4687185f4a
commit 5c5b890942
12 changed files with 182 additions and 27 deletions

View File

@ -1,9 +1,9 @@
@if ($notifications->total())
<div class="card" id="export">
<div class="card" id="import">
<div class="card-header">
<div class="row align-items-center">
<div class="col-8">
<h5 class="h3 mb-0">{{ trans('general.export') }}</h5>
<h5 class="h3 mb-0">{{ trans('import.import') }}</h5>
</div>
<div class="col-4 text-right">
@ -20,16 +20,15 @@
</div>
<div class="table-responsive">
<table class="table table-flush table-hover" id="tbl-export">
<table class="table table-flush table-hover" id="tbl-import">
<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', [
{!! trans('notifications.messages.import', [
'type' => $notification->translation,
'file_name' => $notification->file_name,
'url' => $notification->download_url
'count' => $notification->total_rows
]) !!}
@else
{!! $notification->message !!}

View File

@ -1,7 +1,27 @@
<div class="card">
<div class="card-header"></div>
<div class="card-body">
@if ($notifications)
<div class="accordion" id="new-apps">
<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="align-items-center">
<h4 class="mb-0">{{ trans_choice('notifications.new_apps', 2) }}</h4>
</div>
</div>
<div id="collapse-new-apps" class="collapse show" aria-labelledby="heading-new-apps" data-parent="#new-apps">
<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-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 text-left">
{!! $notification->message !!}
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endif