@extends('layouts.app') @push('css') @endpush @section('content')
{{ $title }}
{{ csrf_field() }}



Report Summary

Total Quantity Transfer {{ $transfers->sum('quantity') }}
Total Quantity Sold {{ $sales->sum('quantity') }}
Total Quantity Purchases {{ $purchases->sum('qty') }}
Total Quantity Returns {{ $returns->sum('quantity_before') }}

Quantity By Shop

@foreach(\App\Models\Warehousestore::all() as $shop) @endforeach
# Warehouse & Shops Quantity Packed Quantity Yards
{{ $loop->iteration }} {{ $shop->name }} {{ $stock->getCustomPackedStockQuantity($shop->id) }} {{ $stock->getCustomYardStockQuantity($shop->id) }}


Product Transfer History

@forelse($transfers as $transfer) @empty @endforelse
# From To Status Date Product Type Total Cost Price By
{{ $loop->iteration }} {{ $transfer->store_from->name }} {{ $transfer->store_to->name }} {!! $transfer->stock_transfer->status == "COMPLETE" ? label( $transfer->stock_transfer->status,'success') : label( $transfer->status,'primary') !!} {{ convert_date($transfer->transfer_date) }} {{ convert_date($transfer->product_type) }} {{ number_format($transfer->total_price,2) }} {{ $transfer->user->name }}


Product Sales History

@foreach($sales as $invoice) @endforeach
# Invoice/Receipt No Customer Stock Qty Sold Total Cost Price Total Selling Price Profit Status Date Time By
{{ $loop->iteration }} {{ $invoice->invoice->invoice_paper_number }} {{ $invoice->customer->firstname }} {{ $invoice->customer->lastname }} {{ $invoice->stock->name }} {{ $invoice->quantity }} {{ number_format(($invoice->quantity * $invoice->cost_price),2) }} {{ number_format(($invoice->quantity * $invoice->selling_price),2) }} {{ number_format((($invoice->quantity * $invoice->selling_price)-($invoice->quantity * $invoice->cost_price)),2) }} {!! invoice_status($invoice->status) !!} {{ convert_date2($invoice->invoice->invoice_date) }} {{ $invoice->invoice->sales_time }} {{ $invoice->invoice->created_user->name }}


Product Purchase History

@foreach($purchases as $item) @endforeach
Supplier Date Status Quantity Cost Price Total Cost Price
{{ $item->purchase_order->supplier->name }} {{ convert_date2($item->purchase_order->date_created) }} {!! $item->purchase_order->status == "DRAFT" ? label('DRAFT','primary') : label('COMPLETE','success') !!} {{ $item->qty }} {{ number_format($item->cost_price,2) }} {{ number_format(($item->cost_price * $item->qty),2) }}


Product Returns History

@foreach($returns as $log) @endforeach
# Stock Customer Invoice / Receipt No Quantity Date Type Selling Price Return By
{{ $loop->iteration }} {{ $log->stock->name }} {{ $log->customer->firstname }} {{ $log->customer->lastname }} {{ $log->invoice_paper_number }} {{ $log->quantity_before }} {{ convert_date2($log->date_added) }} {{ $log->store_after == "quantity" ? "Packed" : "Pieces / Yards" }} {{ number_format($log->selling_price,2) }} {{ $log->user->name }}
@endsection @push('js') @endpush