{{-- resources/views/admin/flights/edit.blade.php --}} {{-- Edit flight deal form, pre-filled with existing data --}} {{-- Controller: Admin\FlightController@edit / @update --}} @extends('layouts.admin') @section('title', 'Edit Flight') @section('page_title', 'Edit Flight') @section('page_css') @endsection @section('content') Flight Name * @error('name') {{ $message }} @enderror Category Select Category @foreach($categories as $cat) category_id) == $cat->id ? 'selected' : '' }}>{{ $cat->name }} @endforeach @error('category_id') {{ $message }} @enderror Country Select Country @foreach($countries as $country) country_id) == $country->id ? 'selected' : '' }}>{{ $country->name }} @endforeach @error('country_id') {{ $message }} @enderror Destination @if($flight->destination) {{ $flight->destination->name }} @else Select Country first @endif @error('destination_id') {{ $message }} @enderror Deal URL @error('url') {{ $message }} @enderror Discount % @error('discount_percent') {{ $message }} @enderror Description {{ old('description', $flight->description) }} Top Deal is_top) ? 'checked' : '' }}> Popular is_popular) ? 'checked' : '' }}> Show on Homepage show_on_homepage) ? 'checked' : '' }}> Status (Active) status) === 'active' ? 'checked' : '' }}> Update Flight Cancel @endsection @section('page_js') @endsection