@extends('admin.layouts.master')
@section('title', __('cabbooking::static.airports.add_airport'))
@section('content')
@php
    $settings = getCabBookingSettings();
@endphp
<div class="row">
    <div class="m-auto col-12-8">
        <div class="card-body">
            <div class="row g-4">
                <div class="col-xl-7 order-xl-1 order-last">
                    <form id="airportForm" action="{{ route('admin.airport.store') }}" method="POST"
                        enctype="multipart/form-data">
                        @csrf
                        @include('cabbooking::admin.airport.fields')
                    </form>
                </div>
                <div class="col-xl-5 order-xl-2 order-1">
                    <div class="map-instruction">
                        <h4>{{ __('cabbooking::static.zones.map_instruction_heading') }}</h4>
                        <p>{{ __('cabbooking::static.zones.map_instruction_title') }}</p>
                        <div class="map-detail">
                            <i class="ri-drag-move-fill"></i>
                            {{ __('cabbooking::static.zones.map_instruction_paragraph_1') }}
                        </div>
                        <div class="map-detail">
                            <i class="ri-map-pin-line"></i>
                            {{ __('cabbooking::static.zones.map_instruction_paragraph_2') }}
                        </div>

                        @if ($settings['location']['map_provider'] == 'google_map')
                            <img src="{{ Module::asset('cabbooking:images/cabbooking-map.gif') }}" class="notify-img">
                        @elseif($settings['location']['map_provider'] == 'osm')
                            <img src="{{ Module::asset('cabbooking:images/cabbooking-osm.gif') }}" class="notify-img">
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection


