Footer more info
This commit is contained in:
parent
ce4fed877b
commit
b7bbcab5d4
3 changed files with 14 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ namespace App\Providers;
|
|||
use App\Enums\TicketStatus;
|
||||
use App\Models\Ticket;
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
|
@ -33,6 +34,12 @@ class AppServiceProvider extends ServiceProvider
|
|||
URL::forceScheme('https');
|
||||
}
|
||||
|
||||
$appInfos = json_decode(File::get(\app_path('../composer.json')));
|
||||
|
||||
View::share('name', $appInfos->name);
|
||||
View::share('version', $appInfos->version);
|
||||
View::share('license', $appInfos->license);
|
||||
|
||||
View::share('ticketsNew', Ticket::where('status', TicketStatus::new())->count());
|
||||
View::share('ticketsInProgress', Ticket::whereNotIn(
|
||||
'status',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "laravel/laravel",
|
||||
"name": "ldcweb/supportweb",
|
||||
"version": "1.0.0",
|
||||
"type": "project",
|
||||
"description": "The Laravel Framework.",
|
||||
"keywords": [
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
<footer id="footer" class="text-center text-lg-start">
|
||||
<div class="text-center p-2" style="background-color: rgba(0, 0, 0, 0.05);">
|
||||
<img src="{{ asset('images/supportweb_128.png') }}" alt="{{ config('app.name', 'Laravel') }}" width="56">
|
||||
© {{ date('Y') }}
|
||||
<span class="text-reset">{{ $license }}</span>
|
||||
-
|
||||
<span class="text-reset">{{ $name }} - {{ $version }}</span>
|
||||
-
|
||||
<span class="text-reset fw-bold">LDC Web Services</span>
|
||||
© {{ date('Y') }}
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue