@extends('layouts.report_pdf') @section('title') {{__('Inventory report')}}-{{date('Y-m-d')}} @endsection @section('content')
{{-- --}} {{__('Inventory report')}} {{__('Date')}} : {{date('Y-m-d H:i')}}
{{__('Date range')}} : {{date('Y-m-d H:i',strtotime($data['from']))}} - {{date('Y-m-d H:i',strtotime($data['to']))}}
@if(count($data['purchase_products'])&&request()->has('print.purchases')) @foreach($data['purchase_products'] as $purchase) @if(isset($purchase['purchase'])) @endif @endforeach
{{__('Purchases')}}
{{__('Date')}} {{__('Branch')}} {{__('Supplier')}} {{__('Product')}} {{__('Unit price')}} {{__('Quantity')}} {{__('Total price')}}
{{$purchase['purchase']['date']}} @if(isset($purchase['purchase']['branch'])) {{$purchase['purchase']['branch']['name_'.app()->getLocale()]}} @endif @if(isset($purchase['purchase']['supplier'])) {{$purchase['purchase']['supplier']['name']}} @endif @if(isset($purchase['product'])) {{$purchase['product']['name']}} @endif {{format_money($purchase['price'])}} {{format_money($purchase['quantity'])}} {{format_money($purchase['total_price'])}}
@endif @if(count($data['adjustment_products'])&&request()->has('print.adjustments')) @foreach($data['adjustment_products'] as $adjustment) @endforeach
{{__('Adjustments')}}
{{__('Branch')}} {{__('Type')}} {{__('Product')}} {{__('Quantity')}}
{{$adjustment['adjustment']['branch']['name_'.app()->getLocale()]}} @if($adjustment['type']==1) {{__('In stock')}} @else {{__('Out stock')}} @endif @if(isset($adjustment['product'])) {{$adjustment['product']['name']}} @endif {{format_money($adjustment['quantity'])}}
@endif @if(count($data['transfer_products'])&&request()->has('print.transfers')) @foreach($data['transfer_products'] as $transfer) @endforeach
{{__('Transfers')}}
{{__('From branch')}} {{__('To branch')}} {{__('Product')}} {{__('Quantity')}}
@if(isset($transfer['from_branch'])) {{$transfer['from_branch']['name_'.app()->getLocale()]}} @endif @if(isset($transfer['to_branch'])) {{$transfer['to_branch']['name_'.app()->getLocale()]}} @endif @if(isset($transfer['product'])) {{$transfer['product']['name']}} @endif {{format_money($transfer['quantity'])}}
@endif @if(count($data['consumption_products'])&&request()->has('print.consumptions')) @foreach($data['consumption_products'] as $consumption) @endforeach
{{__('Consumptions')}}
{{__('Branch')}} {{__('Test')}} {{__('Product')}} {{__('Quantity')}}
@if(isset($consumption['branch'])) {{$consumption['branch']['name_'.app()->getLocale()]}} @endif @if(isset($consumption['testable'])) {{$consumption['testable']['name']}} @endif @if(isset($consumption['product'])) {{$consumption['product']['name']}} @endif {{format_money($consumption['quantity'])}}
@endif @if(count($data['disbursement_products'])&&request()->has('print.disbursements')) @foreach($data['disbursement_products'] as $product) @endforeach
{{__('Disbursement')}}
{{__('Date')}} {{__('Product')}} {{__('Quantity')}} {{__('Unit price')}} {{__('Total price')}}
{{$product['disbursement']['date']}} {{$product['product']['name']}} {{format_money($product['quantity'])}} {{format_money($product['unit_price'])}} {{format_money($product['total_price'])}}
@endif @endsection