icon topmenu no outline
This commit is contained in:
1 parent
969d16576d
commit
4480ba7fee
7 files changed
+112
-19
No files matched your search
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Models\Bookmaker;
|
||||
use Filament\Actions\Concerns\InteractsWithActions;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
use Filament\Schemas\Concerns\InteractsWithSchemas;
|
||||
use Filament\Schemas\Contracts\HasSchemas;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Concerns\InteractsWithTable;
|
||||
use Filament\Tables\Contracts\HasTable;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Livewire\Component;
|
||||
|
||||
class ComparingMethod extends Component implements HasActions, HasSchemas, HasTable
|
||||
{
|
||||
use InteractsWithActions;
|
||||
use InteractsWithSchemas;
|
||||
use InteractsWithTable;
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->query(Bookmaker::query())
|
||||
->columns([
|
||||
TextColumn::make('name'),
|
||||
])
|
||||
->filters([
|
||||
// ...
|
||||
])
|
||||
->recordActions([
|
||||
// ...
|
||||
])
|
||||
->toolbarActions([
|
||||
// ...
|
||||
]);
|
||||
}
|
||||
|
||||
public function render(): View
|
||||
{
|
||||
return view('livewire.comparing-method');
|
||||
}
|
||||
}
|
||||
@@ -35,7 +35,7 @@ class LoadEvents
|
||||
->with('home')
|
||||
->with('away')
|
||||
->where('sport_id', Auth::user()->sport_id)
|
||||
->where('starttime', '>', Carbon::now();
|
||||
->where('starttime', '>', Carbon::now());
|
||||
}
|
||||
|
||||
switch (Auth::user()->provider_id) {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ComparingBookmaker extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('comparing_bookmakers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('method_id');
|
||||
$table->string('method')->nullable();
|
||||
$table->integer('sport_id')->index()->references('id')->on('sports');
|
||||
$table->integer('bookmaker_id')->index()->references('id')->on('bookmakers');
|
||||
$table->integer('provider_id')->default(0)->nullable()->index()->references('id')->on('providers');
|
||||
$table->integer('time_lastcheck');
|
||||
$table->integer('margin_threshold');
|
||||
$table->boolean('is_active')->default(false);
|
||||
$table->integer('sorting')->nullable()->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('comparing_bookmakers');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
{{ $this->table }}
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="flex flex-1 gap-3">
|
||||
<div class="flex flex-1 gap-5">
|
||||
@if ($this->current == 'filament.admin.resources.events.index')
|
||||
|
||||
{{-- Client Swop Bookmaker --}}
|
||||
@@ -62,12 +62,12 @@
|
||||
|
||||
{{-- Event Mapper --}}
|
||||
|
||||
<x-filament::modal width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
||||
<x-filament::modal slide-over width="7xl" icon="phosphor-arrows-in-line-horizontal" :close-by-clicking-away="false" :close-by-escaping="false"
|
||||
:close-button="true">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="phosphor-arrows-in-line-horizontal" color="gray"
|
||||
tooltip="Event Mapper">
|
||||
</x-filament::button>
|
||||
<x-filament::icon-button outlined icon="phosphor-arrows-in-line-horizontal" color="gray" class="my-auto"
|
||||
title="Event Mapper">
|
||||
</x-filament::icon-button>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="heading">
|
||||
@@ -157,10 +157,10 @@
|
||||
</x-filament::modal>
|
||||
|
||||
{{-- Multiline --}}
|
||||
<x-filament::modal width="4xl" icon="phosphor-list" :close-by-clicking-away="false" :close-by-escaping="false" :close-button="true">
|
||||
<x-filament::modal slide-over width="4xl" icon="phosphor-list" :close-by-clicking-away="false" :close-by-escaping="true" :close-button="true">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="phosphor-list" color="gray">
|
||||
</x-filament::button>
|
||||
<x-filament::icon-button outlined icon="phosphor-list" color="gray" class="my-auto" title="Multiline Settings">
|
||||
</x-filament::icon-button>
|
||||
</x-slot>
|
||||
<x-slot name="heading">
|
||||
Multiline Settings
|
||||
@@ -170,10 +170,10 @@
|
||||
|
||||
{{-- Alarm --}}
|
||||
|
||||
<x-filament::modal slide-over width="4xl" icon="phosphor-siren" tooltip="Alarm Settings">
|
||||
<x-filament::modal slide-over width="4xl" icon="phosphor-siren">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="phosphor-siren" color="gray">
|
||||
</x-filament::button>
|
||||
<x-filament::icon-button outlined icon="phosphor-siren" color="gray" class="my-auto" title="Alarm Settings">
|
||||
</x-filament::icon-button>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="heading">
|
||||
@@ -185,19 +185,18 @@
|
||||
|
||||
{{-- Calculation --}}
|
||||
|
||||
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" tooltip="Comparing">
|
||||
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" title="Comparing Bookmaker">
|
||||
<x-slot name="trigger">
|
||||
<x-filament::button outlined icon="phosphor-sliders" color="gray">
|
||||
</x-filament::button>
|
||||
<x-filament::icon-button icon="phosphor-sliders" color="gray" class="my-auto" title="Comparing Bookmaker">
|
||||
</x-filament::icon-button>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="heading">
|
||||
Comparing
|
||||
Comparing Bookmaker
|
||||
</x-slot>
|
||||
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
</div>
|
||||
|
||||
@livewire('comparing-method')
|
||||
|
||||
</x-filament::modal>
|
||||
@endif
|
||||
</div>
|
||||
Whitespace-only changes.
Reference in new issue
Block a user