55 lines
2.5 KiB
PHP
55 lines
2.5 KiB
PHP
<div class="flex gap-3 items-center">
|
|
@if ($record->event_bookmaker?->is_swopped)
|
|
<div {{ $getExtraAttributeBag() }}>
|
|
<div class="flex flex-1 gap-1 flex-wrap items-center">
|
|
@if ($record->home->betsapi_image_id)
|
|
<img src="https://assets.b365api.com/images/team/m/{{ $record->home->betsapi_image_id }}.png"
|
|
class="h-4">
|
|
@endif
|
|
<div>{{ $record->away?->name }}</div>
|
|
<div>-</div>
|
|
@if ($record->away->betsapi_image_id)
|
|
<img src="https://assets.b365api.com/images/team/m/{{ $record->away->betsapi_image_id }}.png"
|
|
class="h-4">
|
|
@endif
|
|
<div>{{ $record->home?->name }}</div>
|
|
</div>
|
|
{{-- <div class="text-gray-600 dark:!text-gray-400 text-xs">{{ $record->group?->name }}</div> --}}
|
|
</div>
|
|
@else
|
|
<div {{ $getExtraAttributeBag() }} class="w-full">
|
|
<div class="flex flex-col gap-2">
|
|
<div class="flex gap-1 items-center">
|
|
@if ($record->home->betsapi_image_id)
|
|
<img src="https://assets.b365api.com/images/team/m/{{ $record->home->betsapi_image_id }}.png"
|
|
class="h-4">
|
|
@endif
|
|
{{ $record->home?->name }}
|
|
</div>
|
|
<div class="flex gap-1 items-center">
|
|
@if ($record->away->betsapi_image_id)
|
|
<img src="https://assets.b365api.com/images/team/m/{{ $record->away->betsapi_image_id }}.png"
|
|
class="h-4">
|
|
@endif
|
|
{{ $record->away?->name }}
|
|
</div>
|
|
</div>
|
|
{{-- <div class="text-gray-600 dark:!text-gray-400 text-xs">{{ $record->group?->name }}</div> --}}
|
|
</div>
|
|
@endif
|
|
|
|
@if ($record->betsapi_id && $record->home_betsapi && $record->away_betsapi)
|
|
<x-filament::modal width="5xl">
|
|
<x-slot name="trigger">
|
|
<x-filament::icon-button icon="phosphor-info" color="gray" size="sm"
|
|
tooltip="Encounter History" />
|
|
</x-slot>
|
|
@livewire('encounter-history', [
|
|
'betsapi_id' => $record->betsapi_id,
|
|
'home' => $record->home_betsapi->name,
|
|
'away' => $record->away_betsapi->name,
|
|
])
|
|
</x-filament::modal>
|
|
@endif
|
|
</div>
|