@extends('admin.layouts.container')

@section('content')
    <div class="side-title">
        <h3>{{ $head }}</h3>

    </div>
    <div class="border-item">
        <form class="form-row" enctype="multipart/form-data">
            <div class="form-group col-lg-6">
                <label>{{  __('branches.name') }}  </label>
                <input type="text" class="form-control " disabled value='{{ $branch->name }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.address') }}  </label>
                <input type="text" class="form-control " disabled value='{{ $branch->address ?? "" }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.cost_delivery') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $branch->cost_delivery  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.time_delivery') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $branch->time_delivery  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.time_prepare') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $branch->time_prepare  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.city_id') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $branch->city->currentDescription->title  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.area_id') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $branch->area->currentDescription->title  }}'/>
            </div>
            <div class="form-group col-lg-6">
                <label>{{  __('branches.store_id') }}  </label>
                <input type="text" class="form-control " disabled value='{{  $branch->store->name  }}'/>
            </div>
            <div class="form-group col-lg-12">
                <iframe
                    style='width:100%'
                    height="250"
                    frameborder="0"
                    scrolling="no"
                    marginheight="0"
                    marginwidth="0"
                    src="https://maps.google.com/maps?q={{$branch->latitude.', '.$branch->longitude}}&z=15&output=embed"
                >
                </iframe>
            </div>
        </form>
    </div>

@endsection
@section('inner_js')
    <!-- Editor JS files -->
    {{--    <script src="{{ asset('/assets/admin/js/lib/tinymce.min.js') }}"></script>--}}
    <script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
    <script>
        let route_prefix = "{{ url(config('lfm.prefix')) }}",
            url = "{{url('/')}}/",
            currentLanguage = "{{getCurrentLocale()}}",
            imagePath = "{{asset('')}}";
    </script>
    <script src="{{ asset('assets/admin/js/editor.js') }}"></script>
    <script src="{{ asset('assets/admin/js/lfm.js') }}"></script>
    <script src="{{ asset('assets/admin/js/articles.js') }}"></script>
@endsection
