getRecord(); $bookmaker_starttimes = EventBookmaker::with('bookmaker')->where('event_id', $record->id)->select('bookmaker_id', 'starttime')->get(); $pop = '
'; $pop .= '
TxOdds
'; $pop .= '
'.$record->starttime.'
'; foreach ($bookmaker_starttimes as $value) { $pop .= '
'.$value->bookmaker->name.'
'; $pop .= '
'.$value->starttime.'
'; } $pop .= '
'; $client_starttime = $record->event_bookmaker->starttime ?? null; $txodds_starttime = $record->starttime ?? null; if ($client_starttime) { if ($client_starttime == $txodds_starttime) { $color = 'fi-color fi-color-success fi-text-color-600 dark:fi-text-color-400 fi-ta-text-item'; } else { $color = 'fi-color fi-color-warning fi-text-color-600 dark:fi-text-color-400 fi-ta-text-item'; } $starttime = Carbon::createFromTimestamp(strtotime($client_starttime))->timezone('CET'); } else { $color = 'fi-color fi-color-info fi-text-color-600 dark:fi-text-color-400 fi-ta-text-item'; $starttime = Carbon::createFromTimestamp(strtotime($txodds_starttime))->timezone('CET'); } ob_start(); ?>
format('H:i')) ?>
format('d. M')) ?>