File: /var/www/vhost/disk-apps/demo.sports-crowd.com/resources/views/matcheventzoneprices/form.blade.php
@csrf
<div class="card-body">
<div class="form-row">
<div class="form-group col-md-12">
<label for="match_event_id">@lang('messages.event_prices.title_3')</label>
<select class="form-control" id="match_event_id" name="match_event_id" disabled value="{{ $matchEventZonePrice->match_event_id ?? old('match_event_id') }}">
<option value="{{ $event->id }}" {{ isset($matchEventZonePrice) && $event->match_event_id == $event->id ? 'selected' : '' }}>
{{ $event->name }}
</option>
</select>
</div>
<div class="form-group col-md-12">
<label for="zone_id">@lang('messages.event_prices.title_4')</label>
<select class="form-control" id="zone_id" name="zone_id" value="{{ $matchEventZonePrice->zone_id ?? old('zone_id') }}">
<option value="0" disabled {{isset($matchEventZonePrice) ? '' : 'selected'}}>
@lang('messages.select')
</option>
@foreach ($zones as $zone)
<option value="{{ $zone->id }}" {{ isset($matchEventZonePrice) && $matchEventZonePrice->zone_id == $zone->id ? 'selected' : '' }}>
{{ $zone->zone->name }} - {{ $zone->name }}
</option>
@endforeach
</select>
</div>
<div class="form-group col-md-12">
<label for="price" class="ul-form__label">@lang('messages.event_prices.title_5'):</label>
<input type="number" class="form-control" id="price" name="price" placeholder="" value="{{ $matchEventZonePrice->price ?? old('price') }}">
</div>
<div class="form-group col-md-12">
<label for="price_suscription" class="ul-form__label">@lang('messages.event_prices.title_6'):</label>
<input type="number" class="form-control" id="price_suscription" name="price_suscription" placeholder="" value="{{ $matchEventZonePrice->price_suscription ?? old('price_suscription') }}">
</div>
</div>
</div>