@extends('admin.layouts.container')

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

<div class="border-item">
  
@foreach($ultrasounds as $key=>$row)
<div class="row">
    <div class="form-group col-lg-12">
<label>Ultrasound : {{$key+1}}</label>
</div>
        <div class="form-group col-lg-12">
            <label>{{ meta('description', getCurrentLocale()) ?? __('reservations.description') }} </label>
            <textarea type="text" disabled class="form-control" name="description" >{{  $row->description }}</textarea>
        </div>
         
        
        @if(!is_null($row->image))
         <div class="form-group col-lg-12">
            <label>{{ meta('image', getCurrentLocale()) ?? __('reservations.anatomy_image') }} </label>
           <img class="form-control" src="{{asset($row->image)}}" style=" width: 300px;height: 300px;">
        </div>
        @endif
        </div>
      @endforeach

       
      
       


        <div class="text-center mt-5 col-12">
            <button onclick="window.print()" class="butn"><span>{{ __('main.print') }}</span></button>
        </div>

</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('/')}}/",
            imagePath = "{{asset('')}}";
    </script>
    <script src="{{ asset('assets/admin/js/editor.js') }}"></script>
    <script src="{{ asset('assets/admin/js/lfm.js') }}"></script>
@endsection
