getRecord();
$bookmaker_starttimes = EventBookmaker::where('event_id', $record->id)
->join('bookmakers', 'bookmakers.id', '=', 'event_bookmakers.bookmaker_id')
->select('bookmaker_id', DB::raw('TIME(starttime) AS starttime'))
->orderBy('bookmakers.name')
->get();
$pop = '
';
$pop .= '
TxOdds
';
$pop .= '
'.date('H:i:s', strtotime($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));
} 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));
}
ob_start(); ?>
= e($starttime->format('H:i')) ?>
= e($starttime->format('d. M')) ?>