@extends('layouts.app')
@section('title')
    {{ __('messages.medicine.medicine_details')}}
@endsection
@section('header_toolbar')
    <div class="container-fluid">
        @include('layouts.errors')
        <div class="d-flex flex-wrap align-items-center justify-content-between mb-7">
            <h1 class="mb-0 me-1">@yield('title')</h1>
            <div class="text-end mt-4 mt-md-0">
                <a class="btn btn-primary edit-btn me-2"
                   href="{{ route('medicines.edit',['medicine' => $medicine->id])}}">{{ __('messages.common.edit') }}</a>
                <a href="{{ route('medicines.index') }}"
                   class="btn btn-outline-primary ms-2">{{ __('messages.common.back') }}</a>
            </div>
        </div>
    </div>
@endsection
@section('content')
    <div class="d-flex flex-column flex-lg-row">
        <div class="flex-lg-row-fluid mb-10 mb-lg-0 me-lg-7 me-xl-10">
            <div class="row">
                <div class="col-12">
                    @include('flash::message')
                </div>
            </div>
            <div class="p-12">
                @include('medicines.show_fields')
            </div>
        </div>
    </div>
@endsection
