@extends('admin.layouts.container')

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

<div class="border-item">
  
@foreach($anatomies as $key=>$row)

<label>{{__('reservations.anatomynumber')}} : {{$key+1}}</label>
<div class="row">
        <div class="form-group col-lg-6">
            <label>{{ meta('description', getCurrentLocale()) ?? __('reservations.description') }} </label>
            <input type="text" disabled class="form-control" name="description"  value='{{  $row->description }}'/>
        </div>
         <div class="form-group col-lg-6">
            <label>{{ meta('cost', getCurrentLocale()) ?? __('reservations.cost') }} </label>
            <input type="text" disabled class="form-control "   value='{{  $row->cost }}'/>
        </div>
           <div class="form-group col-lg-6">
            <label>{{ meta('type', getCurrentLocale()) ?? __('reservations.type') }} </label>
            <input type="text" disabled class="form-control "   value='@if($row->type == '0') {{__("reservations.medical")}} @else {{__("reservations.kito")}} @endif'/>
        </div>
       
         <div class="form-group col-lg-6">
            <label>{{ meta('result', getCurrentLocale()) ?? __('reservations.result') }} </label>
            <input type="text" disabled class="form-control "   value='{{  $row->result }}'/>
        </div>
        </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
      @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
