@extends('layouts.admin') @section('header-content') @endsection @section('content')
Stock Order Detail
Booked By @if(isset($stock->BookedBy->firstname)){{$stock->BookedBy->firstname.' '.$stock->BookedBy->lastname}} @endif Zone {{$stock->zone}}
Date {{$stock->date}} Status {{$stock->status}}
Remarks {{$stock->remarks}}
Product Included
@foreach($stock->stock_details as $k=>$stock_detail) @endforeach
# Product Name Booked Quantity (CTN) Delivered Quantity (CTN)
{{$k+1}} {{$stock_detail->products->name}} @if(!empty($stock_detail->quantity) && !empty($stock_detail->products->cotton)) @php $rem=0; $rem=($stock_detail->quantity)%$stock_detail->products->cotton @endphp {{intval(($stock_detail->quantity)/$stock_detail->products->cotton).' Cotton ' }} @if(!empty($rem) && $rem!=0) {{(' + '.$rem . ' piece ')}} @endif @endif @if(count($stock_detail->product_category)>0) @endif @if(!empty($stock_detail->delivered) && !empty($stock_detail->products->cotton)) @php $rem=0; $rem=($stock_detail->delivered)%$stock_detail->products->cotton @endphp {{intval(($stock_detail->delivered)/$stock_detail->products->cotton).' Cotton ' }} @if(!empty($rem) && $rem!=0) {{(' + '.$rem . ' piece ')}} @endif @endif
Bilty
@foreach($stock->stock_bilty as $k3=>$value) @endforeach
@if($stock->status!='Completed')
@endif
@endsection @section('footer-content') {{--Append images--}} @endsection