@extends('layouts.admin') @section('title' , 'Manage Orders') @section('styles') @endsection @section('breadcrumb-item')
Employee Name: {{ $employee->name }} |
@if(sizeof($employee->assignedOrders) > 0)
Unlink All | @endif||||||
|---|---|---|---|---|---|---|---|
| Sr# | Order ID | Amount | Shop | {{--Booked By | --}}Placed On | Status | Unlink |
| {{$loop->iteration}} | {{$order->id ?? ''}} | {{ _orderConditions($order) }} | {{$order->shop->name ?? ''}} | {{--{{$order->employee->name}} | --}}{{$order->created_at->format('d-M-Y') ?? ''}} | {{$order->status_string ?? ''}} | |
| No Orders Yet | |||||||
| Total Amount | {{$employee->assignedOrders->sum('amount')}} | ||||||
| Total Orders | {{$employee->assignedOrders->count()}} | ||||||
Employee Name: {{ $employee->name }} |
|||||
|---|---|---|---|---|---|
| Product Name | Pack Size | quantity | bonus | Total Quantity | {{--Price | --}}
| {{ $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()}} | ||||