@extends('layouts.app') @section('title', __('lang_v1.product_stock_details')) @section('content')

{{ __('lang_v1.product_stock_details')}}

{!! Form::open(['url' => action('ReportController@productStockDetails'), 'method' => 'get' ]) !!}
{!! Form::label('search_product', __('lang_v1.search_product') . ':') !!}
{!! Form::select('variation_id', [], null, ['class' => 'form-control', 'id' => 'variation_id', 'placeholder' => __('lang_v1.search_product_placeholder')]); !!}
{!! Form::label('location_id', __('purchase.business_location').':') !!}
{!! Form::select('location_id', $business_locations, null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'required']); !!}

{!! Form::close() !!}
@if(!empty($stock_details))

@foreach($stock_details as $row) @php $stock_mismatch = $row->stock - $row->total_stock_calculated; @endphp @if($stock_mismatch == 0) @continue @endif @endforeach
Product {{ __('report.opening_stock') }} {{ __('home.total_purchase') }}: {{ __('lang_v1.total_purchase_return') }} {{ __('report.total_stock_adjustment') }} {{ __('lang_v1.total_stock_transfered_to_the_location') }} {{ __('lang_v1.total_sold') }} {{ __('lang_v1.total_sell_return') }} {{ __('lang_v1.total_stock_transfered_from_the_location') }} Total Manufactured Total Used For Production Correct Stock ({{ __('lang_v1.total_stock_calculated') }}) Incorrect Stock ({{ __('lang_v1.total_stock_available') }}) Fix
{{$row->product}} @if($row->type == "variable") {{$row->product_variation}} - {{$row->variation_name}} ({{$row->sub_sku}}) @else ({{$row->sku}}) @endif {{$row->total_opening_stock}} {{$row->total_purchased}} {{$row->total_purchase_return}} {{$row->total_adjusted}} {{$row->total_sell_transfered}} {{$row->total_sold}} {{$row->total_sell_return}} {{$row->total_sell_transfered}} {{$row->total_manufactured}} {{$row->total_ingredients_used}} {{$row->total_stock_calculated}} {{$row->stock}} Fix
@endif
@endsection @section('javascript') @endsection