@error('name')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('start_date')
{{ $message }}
@php
$conflictingTournaments = \App\Models\Tournament::where(function ($query) use ($start_date, $end_date) {
$query->whereBetween('start_date', [$start_date, $end_date])
->orWhereBetween('end_date', [$start_date, $end_date])
->orWhere(function ($query) use ($start_date, $end_date) {
$query->where('start_date', '<=', $start_date)
->where('end_date', '>=', $end_date);
});
})->get();
@endphp
Conflicting Tournaments:
@foreach ( $conflictingTournaments as $conflictingTournament)
{{ $conflictingTournament->name }}
{{ \Carbon\Carbon::parse($conflictingTournament->start_date)->format('M d, Y') }}
@if(!empty($conflictingTournament->end_date))
to {{ \Carbon\Carbon::parse($conflictingTournament->end_date)->format('M d, Y') }}
@endif
@endforeach
@enderror
@error('director')
{{ $message }}
@enderror
@error('finance')
{{ $message }}
@enderror
@php
function isImageMime($filename) {
$imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp'];
$extension = strtolower(pathinfo($filename, PATHINFO_EXTENSION));
return in_array($extension, $imageExtensions);
}
@endphp
@if(!empty($tournament_logo))
@if(isImageMime($tournament_logo))
@endif
@endif
@error('logo')
{{ $message }}
@enderror
@foreach ($fee_descriptions as $index => $fee_description)
@if($index === count($fee_descriptions) - 1)
Add fee description option
@endif
@endforeach
@foreach ($fee_notes as $index => $fee_note)
@if($index === count($fee_notes) - 1)
Add fee note option
@endif
@endforeach
@foreach ($fee_sub_notes as $index => $fee_sub_note)
@if($index === count($fee_sub_notes) - 1)
Add fee sub note option
@endif
@endforeach
@foreach ($format_descriptions as $index => $format_description)
@if($index === count($format_descriptions) - 1)
Add format description
@endif
@endforeach
@foreach ($rule_descriptions as $index => $fule_description)
@if($index === count($rule_descriptions) - 1)
Add rule description
@endif
@endforeach
@foreach ($waiver_descriptions as $index => $waiver_description)
@if($index === count($waiver_descriptions) - 1)
Add waiver description
@endif
@endforeach