@extends('admin.layouts.container')

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


    <div class="border-item">
        <div class="tab-content col-lg-12">
            <div class="row">
                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.uuid') }} </label>
                    <p class="form-control" style="height: auto">{{$stock->uuid ?? ''}}</p>
                </div>
                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.canteen_id') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->canteen->currentDescription->title ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.status') }} </label>
                    <p class="form-control" style="height: auto">{{ __('stocks.statuses.'.$stock->status) ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.date') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->date ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.created_at') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->created_at ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.original_count') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->original_count ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.original_price') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->original_price ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.count') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->count ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.price') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->price ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.balance') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->balance ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.balance_price') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->balance_price ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.product') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->product->currentDescription->title ?? ''}}</p>
                </div>

                <div class="form-group col-lg-6">
                    <label>{{ __('stocks.category') }} </label>
                    <p class="form-control" style="height: auto">{{ $stock->category->currentDescription->title ?? ''}}</p>
                </div>

                @if($stock->user_id)
                    <div class="form-group col-lg-6">
                        <label>{{ __('stocks.user') }} </label>
                        <p class="form-control" style="height: auto">{{ $stock->user->currentDescription->title ?? ''}}</p>
                    </div>
                @endif

                @if($stock->order_id)
                    <div class="form-group col-lg-6">
                        <label>{{ __('stocks.order_id') }} </label>
                        <p class="form-control" style="height: auto">{{ $stock->order_id ?? ''}}</p>
                    </div>
                @endif

            </div>
        </div>
    </div>




@endsection

@section('inner_js')
    <!-- Editor JS orders -->
    <script src="{{ asset('/assets/admin/js/lib/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



