@extends('layouts.admin') @section('styles') @endsection @section('title', 'Print Order') @section('breadcrumb-item')
Print Summary
Employee Name: {{ $employee->name }}Print Date: {{ now()->format('Y-m-d') }} |
||||||
|---|---|---|---|---|---|---|
| Sr# | Product Name | Pack Size | quantity | bonus | Total Quantity | {{--Price | --}}
| {{ $loop->iteration }} | {{ $productName->name }} | {{ $productName->size }} | @foreach ($orderProductNames as $orderProduct) @if ($orderProduct->product_id == $productId) @php $qty += $orderProduct->total_quantity; @endphp @endif @endforeach {{ $qty }} | @foreach ($orderProductNames as $orderProduct) @if ($orderProduct->product_id == $productId) @php $bonus += $orderProduct->total_bonus; @endphp @endif @endforeach {{ $bonus }} | @foreach ($orderProductNames as $orderProduct) @if ($orderProduct->product_id == $productId) @php $total_qty += $orderProduct->total_quantity + $orderProduct->total_bonus; @endphp @endif @endforeach {{ $total_qty }} | {{----}} {{-- @foreach ($orderProductNames as $orderProduct)--}} {{-- @if ($orderProduct->product_id == $productId)--}} {{-- {{ $orderProduct->price }}--}} {{-- @endif--}} {{-- @endforeach--}} {{-- | --}}Total Amount | {{$employee->assignedOrders->where('status',1)->sum('amount')}} |
| Total Orders | {{$employee->assignedOrders->where('status',1)->count()}} | |||||