Creato traduzione per il calendario in Italiano per giorni e mesi
This commit is contained in:
parent
0440bba9f4
commit
21cc195ce4
31
app/View/Components/Widget/Avvisi.php
Normal file
31
app/View/Components/Widget/Avvisi.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\Widget;
|
||||
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Avvisi extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
// public $avvisi ="";
|
||||
|
||||
public function __construct(public array $avvisi)
|
||||
{
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\View|\Closure|string
|
||||
*/
|
||||
public function render():View
|
||||
{
|
||||
return view('components.widget.avvisi', ['avvisi'=>$this->avvisi]);
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'title' => 'AdminLTE 3',
|
||||
'title' => 'Gestionale',
|
||||
'title_prefix' => '',
|
||||
'title_postfix' => '',
|
||||
|
||||
@ -63,7 +63,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'logo' => '<b>Admin</b>LTE',
|
||||
'logo' => '<b>Gestionale</b>',
|
||||
'logo_img' => 'vendor/adminlte/dist/img/AdminLTELogo.png',
|
||||
'logo_img_class' => 'brand-image img-circle elevation-3',
|
||||
'logo_img_xl' => null,
|
||||
|
@ -93,7 +93,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'fallback_locale' => 'en',
|
||||
'fallback_locale' => 'it',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
23
resources/lang/it/app.php
Normal file
23
resources/lang/it/app.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
return [
|
||||
'January' => 'Gennaio',
|
||||
'February' => 'Febbraio',
|
||||
'March' => 'Marzo',
|
||||
'April' => 'Aprile',
|
||||
'May' => 'Maggio',
|
||||
'June' => 'Giugno',
|
||||
'July' => 'Luglio',
|
||||
'August' => 'Agosto',
|
||||
'September' => 'Settembre',
|
||||
'October' => 'Ottobre',
|
||||
'November' => 'Novembre',
|
||||
'December' => 'Dicembre',
|
||||
|
||||
'Monday' => 'lunedì',
|
||||
'Tuesday' => 'martedì',
|
||||
'Wednesday' => 'mercoledì',
|
||||
'Thursday' => 'giovedì',
|
||||
'Friday' => 'venerdì',
|
||||
'Saturday' => 'sabato',
|
||||
'Sunday' => 'domenica',
|
||||
];
|
36
resources/views/components/widget/avvisi.blade.php
Normal file
36
resources/views/components/widget/avvisi.blade.php
Normal file
@ -0,0 +1,36 @@
|
||||
<div class="card-footer card-comment draggable">
|
||||
@foreach($avvisi as $avviso)
|
||||
<div class="card-comment">
|
||||
<div class="row">
|
||||
<div class="col-xs">
|
||||
<time datetime="{{ date_format(date_create($avviso->creato_il),'Y-m-d') }}" class="icon">
|
||||
<em>{{date_format(date_create($avviso->creato_il),'l')}}</em>
|
||||
<strong>{{date_format(date_create($avviso->creato_il),'F')}}</strong>
|
||||
<span>{{date_format(date_create($avviso->creato_il),'d')}}</span>
|
||||
</time>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="comment-text">
|
||||
<span class="username">
|
||||
|
||||
<span class="text-muted float-right">
|
||||
<img class="img-circle img-sm" src="{{ Gravatar::get(App\Models\User::getUserById($avviso->creato_da)->email)}}" alt="User Image">
|
||||
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<p>{{ $avviso->avviso }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<form action="{{ Route('newAvviso') }}" method="POST">
|
||||
@csrf
|
||||
<label for="avviso" class="form-label">Nuovo Avviso:</label>
|
||||
<textarea class="form-control" name="avviso"></textarea>
|
||||
<input type="hidden" name="creato_da" value="{{ Auth::user()->id }}">
|
||||
<input type="submit" name="submit" class="button btn-primary">
|
||||
</form>
|
||||
</div>
|
@ -101,42 +101,42 @@
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-8 draggable ">
|
||||
<div class="card-footer card-comment draggable">
|
||||
@foreach($avvisi as $avviso)
|
||||
<div class="card-comment">
|
||||
<div class="row">
|
||||
<div class="col-xs">
|
||||
<time datetime="{{ date_format(date_create($avviso->creato_il),'Y-m-d') }}" class="icon">
|
||||
<em>{{date_format(date_create($avviso->creato_il),'l')}}</em>
|
||||
<strong>{{date_format(date_create($avviso->creato_il),'F')}}</strong>
|
||||
<span>{{date_format(date_create($avviso->creato_il),'d')}}</span>
|
||||
</time>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="comment-text">
|
||||
<span class="username">
|
||||
|
||||
<span class="text-muted float-right">
|
||||
<img class="img-circle img-sm" src="{{ Gravatar::get(App\Models\User::getUserById($avviso->creato_da)->email)}}" alt="User Image">
|
||||
|
||||
<div class="card-footer card-comment draggable">
|
||||
@foreach($avvisi as $avviso)
|
||||
<div class="card-comment">
|
||||
<div class="row">
|
||||
<div class="col-xs">
|
||||
<time datetime="{{ date_format(date_create($avviso->creato_il),'Y-m-d') }}" class="icon">
|
||||
<em>{{ __('app.'.date_format(date_create($avviso->creato_il),'l')) }}</em>
|
||||
<strong>{{ __('app.'.date_format(date_create($avviso->creato_il),'F'))}}</strong>
|
||||
<span>{{date_format(date_create($avviso->creato_il),'d') }}</span>
|
||||
</time>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="comment-text">
|
||||
<span class="username">
|
||||
|
||||
<span class="text-muted float-right">
|
||||
<img class="img-circle img-sm" src="{{ Gravatar::get(App\Models\User::getUserById($avviso->creato_da)->email)}}" alt="User Image">
|
||||
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
<p>{{ $avviso->avviso }}</p>
|
||||
</div>
|
||||
<p>{{ $avviso->avviso }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<form action="{{ Route('newAvviso') }}" method="POST">
|
||||
@csrf
|
||||
<label for="avviso" class="form-label">Nuovo Avviso:</label>
|
||||
<textarea class="form-control" name="avviso"></textarea>
|
||||
<input type="hidden" name="creato_da" value="{{ Auth::user()->id }}">
|
||||
<input type="submit" name="submit" class="button btn-primary">
|
||||
</form>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<form action="{{ Route('newAvviso') }}" method="POST">
|
||||
@csrf
|
||||
<label for="avviso" class="form-label">Nuovo Avviso:</label>
|
||||
<textarea class="form-control" name="avviso"></textarea>
|
||||
<input type="hidden" name="creato_da" value="{{ Auth::user()->id }}">
|
||||
<input type="submit" name="submit" class="button btn-primary">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user