@extends('dailies.layout')
@section('dailies-title')
{{ $daily->name }}
@endsection
@section('dailies-content')
{!! breadcrumbs([ucfirst(__('dailies.dailies')) => __('dailies.dailies'), $daily->name => $daily->url]) !!}
{{ $daily->name }}
@php
$isDisabled =
isset($cooldown) ||
!Auth::user() ||
($daily->currency_id != null &&
Auth::user()
->getCurrencies(true)
->where('id', $daily->currency_id)
->first()->quantity < $daily->fee);
@endphp
@if ($daily->currency)
This {{ __('dailies.daily') }} takes a {!! $daily->currency->display($daily->fee) !!} fee to play!
@if (Auth::user() &&
Auth::user()->getCurrencies(true)->where('id', $daily->currency_id)->first()->quantity < $daily->fee)
You do not have enough currency to play.
@endif
@endif
@if ($daily->type == 'Wheel' && $daily->wheel)
@include('dailies._wheel_daily', ['wheel' => $daily->wheel])
@endif
@if ($daily->type == 'Button')
@include('dailies._button_daily')
@endif
@endsection