@extends('layouts.admin') @section('header-content') @endsection @section('content')

@foreach($stocks as $key=> $orderss)

{{$subdistributor->name}}

{{$getparties->partyaccountant->firstname}} {{$getparties->partyaccountant->lastname}}({{$subdistributor->address}})

Customer Name:{{$orderss->dsfshop->shopkeeper_name}}

Shop Name:{{$orderss->dsfshop->shop_name}}

Shop Area:{{$orderss->dsfshop->getareas->name}}

Address:{{$orderss->dsfshop->address}}

Invoice Date: {{$orderss->date}}

Order No: 00{{$orderss->order_no->order_no}}

S/O: {{$orderss->BookedBy->firstname}} {{$orderss->BookedBy->lastname}}

Contact: {{$orderss->BookedBy->phone_1}}

@foreach($orderss->stock_details as $key=> $ord) @if($ord->detailscategories) @foreach($ord->detailscategories as $key=> $orrd) @endforeach @endif @if($ord->detailscategories->isEmpty()) @endif @endforeach
Item Name Qty Rate Amount

{{$orrd->product->name}}

{{$orrd->quantity}} {{round($ord->productprice->distributor_price,2)}} {{round($orrd->quantity*$ord->productprice->distributor_price,2)}}

{{$ord->products->name}}

{{$ord->quantity}} {{round($ord->productprice->distributor_price,2)}} {{round($ord->quantity*$ord->productprice->distributor_price,2)}}

Total:{{round($orderss->price,2)}}



@endforeach
@endsection