@extends('layouts.app') @section('title') {{__('Inventory report')}} @endsection @section('breadcrumb')

{{__('Reports')}}

@endsection @section('content')

{{__('Inventory report')}}

has('date')) value="{{request()->get('date')}}" @endif id="date" required>
@if(request()->has('date'))
@foreach($purchase_products as $purchase) @endforeach
{{__('Branch')}} {{__('Supplier')}} {{__('Product')}} {{__('Unit price')}} {{__('Quantity')}} {{__('Total price')}}
{{$purchase['purchase']['branch']['name']}} {{$purchase['purchase']['supplier']['name']}} {{$purchase['product']['name']}} {{formated_price($purchase['price'])}} {{$purchase['quantity']}} {{formated_price($purchase['total_price'])}}
@foreach($adjustment_products as $adjustment) @endforeach
{{__('Branch')}} {{__('Type')}} {{__('Product')}} {{__('Quantity')}}
{{$adjustment['adjustment']['branch']['name']}} @if($adjustment['type']==1) {{__('In stock')}} @else {{__('Out stock')}} @endif {{$adjustment['product']['name']}} {{$adjustment['quantity']}}
@foreach($transfer_products as $transfer) @endforeach
{{__('From branch')}} {{__('To branch')}} {{__('Product')}} {{__('Quantity')}}
{{$transfer['from_branch']['name']}} {{$transfer['to_branch']['name']}} {{$transfer['product']['name']}} {{$transfer['quantity']}}
@foreach($consumption_products as $consumption) @endforeach
{{__('Branch')}} {{__('Test')}} {{__('Product')}} {{__('Quantity')}}
{{$consumption['branch']['name']}} {{$consumption['testable']['name']}} {{$consumption['product']['name']}} {{$consumption['quantity']}}
@endif
@endsection @section('scripts') @endsection