@extends('layouts.admin') @section('header-content') @endsection @section('content')
@if(!empty($bilty)) @if(count($bilty->biltyImages->toarray())>0) @foreach($bilty->biltyImages->toarray() as $key2=>$value2) @else @endif @endforeach @else @endif @endif
Bilty Detail @if(Auth::user()->can('modify_bilty')) @endif
Supplier @if(isset($bilty->supplier->firstname)){{$bilty->supplier->firstname.' '.$bilty->supplier->lastname}} @endif Delivered To @if(isset($bilty->user->firstname)){{$bilty->user->firstname.' '.$bilty->user->lastname}} @endif
Bilti # {{$bilty->bilti_no}} PO Number {{$bilty->po_no}}
Bilty Date {{$bilty->bilti_date}} Bilty Received Date {{$bilty->bilti_received_date}}
Status {{$bilty->status}}
Remarks {{$bilty->remarks}}
Product Included
@foreach($bilty->products as $key=>$value) @endforeach
# Product Name Quantity Quantity Received
{{$key+1}} {{$value->products->name}} {{--@if($value->product_id!=12)--}} {{--{{$value['quantity']/12}} Dozen--}} {{--@endif--}} @if(!empty($value->quantity)) @php $rem=0; $rem=($value->quantity)%$value->products->cotton @endphp {{intval(($value->quantity)/$value->products->cotton).' Cotton ' }} @if(!empty($rem) && $rem!=0) {{(' + '.$rem . ' piece ')}} @endif @endif @if(count($value->biltyProductTypes)>0) @endif @if(!empty($value->quantity_received)) @php $rem=0; $rem=($value->quantity_received)%12 @endphp {{intval(($value->quantity_received)/12).' Dozen ' }} @if(!empty($rem) && $rem!=0) {{(' + '.$rem . ' piece ')}} @endif @endif
Bilty Images
@if(isset($value2['image']) && !empty($value2['image']))
@endif @if(($key2+1)%4==0)
No Images
@endsection