@php $offer = $offer ?? null; $active = (bool) old('is_active', $offer?->is_active ?? true); $posterUrl = $offer?->posterUrl(); @endphp Brand Select an existing brand @foreach ($brands as $brand) brand_id) === $brand->id)>{{ $brand->name }} @endforeach @error('brand_id'){{ $message }}@enderror Short description / details {{ old('details', $offer?->details) }} Location No specific city @foreach ($cities as $city) city_id) === $city->id)> {{ $city->name }}@if($city->province) , {{ $city->province->name }}@endif @endforeach Offer poster @error('poster'){{ $message }}@enderror @if ($posterUrl) @else @endif @if ($offer?->poster_thumb_path || $offer?->poster_path) A new poster replaces this offer's image only. @endif Active @once @push('styles') @endpush @push('scripts') @endpush @endonce
A new poster replaces this offer's image only.