@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']))}} |
| {{__('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'])}} |
| {{__('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'])}} |
| {{__('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'])}} |
| {{__('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'])}} |
| {{__('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'])}} |