@extends('layouts.app')
@section('title')
    Ads-Configuration
@endsection
@section('content')
    <div class="container-fluid">
        <div class="d-flex flex-column">
            <div class="row">
                <div class="card">
                    <div class="card-body">
                        @include('flash::message')
                        @if ($errors->any())
                            <div class="alert alert-danger">{{ $errors->first() }}</div>
                        @endif
                        @include('flash::message')
                        <form method="post" action="{{ route('ads.configuration.update') }}">
                            @csrf
                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="mb-5">
                                        <div class="d-flex justify-content-between">
                                        <span class="fs-3 ">Ads Type</span>
                                        <div class="form-check form-switch ">
                                            <input class="form-check-input" type="checkbox" name="ads_type"
                                                   id="enableSplashBackground" value="1" {{ $data['ads_type'] == '1' ? 'checked' : ''}}>
                                        </div>
                                        </div>
                                        <div>
                                            
                                        </div>
                                        
{{--                                        <div class="form-group">--}}
{{--                                            <div class="d-inline">--}}
{{--                                                <input type="radio" name="ads_type" id="none" value="1"--}}
{{--                                                       {{ !empty($data) && $data['ads_type'] == 1 ? 'checked' : '' }} class="form-check-input mx-1 none">--}}
{{--                                                <label class="form-label ads_type" for="none">None</label>--}}
{{--                                            </div>--}}
{{--                                            <div class="d-inline">--}}
{{--                                                <input type="radio" name="ads_type" id="admob" value="2"--}}
{{--                                                       {{ !empty($data) && $data['ads_type'] == 2 ? 'checked' : '' }} class="form-check-input mx-1">--}}
{{--                                                <label class="form-label ads_type" for="admob">AdMob</label>--}}
{{--                                            </div>--}}
{{--                                            <div class="d-inline">--}}
{{--                                                <input type="radio" name="ads_type" id="facebook" value="3"--}}
{{--                                                       {{ !empty($data) && $data['ads_type'] == 3 ? 'checked' : '' }} class="form-check-input mx-1">--}}
{{--                                                <label class="form-label ads_type" for="facebook">Facebook</label>--}}
{{--                                            </div>--}}
{{--                                        </div>--}}
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="admob_div">
                                <div class="col-lg-6">
                                    <div class="mb-5">
                                        <label for="admob_banner_id" class="form-label">AdMob Banner Unit ID-Android
                                            (optional) </label>
                                        <input type="text" class="form-control" name="admob_banner_id"
                                               value="{{ $data['admob_banner_id'] }}"
                                               placeholder="Enter Your admob banner id">
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="mb-5">
                                        <label for="admob_intential_id" class="form-label">AdMob Interstitial Unit
                                            ID-Android (optional) </label>
                                        <input type="text" class="form-control" name="admob_intential_id"
                                               value="{{ $data['admob_intential_id'] }}"
                                               placeholder="Enter Your admob interstitial id">
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="mb-5">
                                        <label for="admob_banner_idios" class="form-label">AdMob Banner Unit ID-iOS
                                            (optional) </label>
                                        <input type="text" class="form-control" name="admob_banner_idios"
                                               value="{{ $data['admob_banner_idios'] }}"
                                               placeholder="Enter Your admob banner id">
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="mb-5">
                                        <label for="admob_intential_idios" class="form-label">AdMob Interstitial Unit
                                            ID-iOS (optional) </label>
                                        <input type="text" class="form-control" name="admob_intential_idios"
                                               value="{{ $data['admob_intential_idios'] }}"
                                               placeholder="Enter Your admob interstitial id">
                                    </div>
                                </div>
                            </div>
{{--                            <div class="row d-none" id="facebook_div">--}}
{{--                                <div class="col-lg-6">--}}
{{--                                    <div class="mb-5">--}}
{{--                                        <label for="facebookBannerID" class="form-label">Facebook Banner Unit ID-Android--}}
{{--                                            (optional) </label>--}}
{{--                                        <input type="text" class="form-control" name="facebook_banner_id"--}}
{{--                                               value="{{ $data['facebook_banner_id'] }}"--}}
{{--                                               id="facebookBannerID" placeholder="Enter Your facebook banner id">--}}
{{--                                    </div>--}}
{{--                                </div>--}}
{{--                                <div class="col-lg-6">--}}
{{--                                    <div class="mb-5">--}}
{{--                                        <label for="facebookIntentialID" class="form-label">Facebook Interstitial Unit--}}
{{--                                            ID-Android (optional) </label>--}}
{{--                                        <input type="text" class="form-control" name="facebook_intential_id"--}}
{{--                                               value="{{ $data['facebook_intential_id'] }}"--}}
{{--                                               id="facebookIntentialID"--}}
{{--                                               placeholder="Enter Your facebook interstitial id">--}}
{{--                                    </div>--}}
{{--                                </div>--}}
{{--                                <div class="col-lg-6">--}}
{{--                                    <div class="mb-5">--}}
{{--                                        <label for="facebookBannerIDIOS" class="form-label">Facebook Banner Unit ID-iOS--}}
{{--                                            (optional) </label>--}}
{{--                                        <input type="text" class="form-control" name="facebook_banner_idios" value="{{ $data['facebook_banner_idios'] }}"--}}
{{--                                               id="facebookBannerIDIOS" placeholder="Enter Your facebook banner id">--}}
{{--                                    </div>--}}
{{--                                </div>--}}
{{--                                <div class="col-lg-6">--}}
{{--                                    <div class="mb-5">--}}
{{--                                        <label for="facebookIntentialIDIOS" class="form-label">Facebook Interstitial--}}
{{--                                            Unit--}}
{{--                                            ID-iOS (optional) </label>--}}
{{--                                        <input type="text" class="form-control" name="facebook_intential_idios" value="{{ $data['facebook_intential_idios'] }}"--}}
{{--                                               id="facebookIntentialIDIOS"--}}
{{--                                               placeholder="Enter Your facebook interstitial id">--}}
{{--                                    </div>--}}
{{--                                </div>--}}
{{--                            </div>--}}
                            <div class="d-flex mt-3">
                                <button type="submit" class="btn btn-primary me-5">Save</button>
                                <button type="button" class="btn btn-secondary">Cancel</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
