@extends('layouts.admin') @section('header-content') @endsection @section('content')
Bilty Details
{!! csrf_field() !!}
@if ($errors->has('supplier')) {{ $errors->first('supplier') }} @endif
@if ($errors->has('delivered_to')) {{ $errors->first('delivered_to') }} @endif
@if ($errors->has('bilti_no')) {{ $errors->first('bilti_no') }} @endif
@if ($errors->has('po_no')) {{ $errors->first('po_no') }} @endif
@if ($errors->has('bilti_date')) {{ $errors->first('bilti_date') }} @endif
@if ($errors->has('bilti_received_date')) {{ $errors->first('bilti_received_date') }} @endif


@if(!empty($bilt)) @if(count($bilt->biltyImages)>0) @foreach($bilt->biltyImages->toarray() as $key2=>$value)
@if(isset($value['image']) && !empty($value['image']))
Remove @endif
@endforeach @endif @endif @if(!isset($key2) || empty($key2)) @endif


{{--
--}} {{----}} {{--
--}}
@php $old_product_categories=array(); @endphp @if(!empty($bilt)) @foreach($bilt->products->toarray() as $key=>$value) @php if(count($value['bilty_product_types'])>0){ foreach ($value['bilty_product_types'] as $index=>$category){ $old_product_categories[$key]['type'][$index]['id']=$category['id']; $old_product_categories[$key]['type'][$index]['bilti_detial_id']=$category['bilti_detial_id']; $old_product_categories[$key]['type'][$index]['product_category_id']=$category['product_category_id']; $old_product_categories[$key]['type'][$index]['quantity']=$category['quantity']/$category['product']['main_product']['cotton']; $old_product_categories[$key]['type'][$index]['old_quantity']=$category['quantity']/$category['product']['main_product']['cotton']; $old_product_categories[$key]['type'][$index]['quantity_received']=$category['quantity_received']/$category['product']['main_product']['cotton']; }} @endphp
@if(isset($value)) @php $quan= intval(($value['quantity'])/$value['products']['cotton']); $oldquan= intval(($value['quantity'])/$value['products']['cotton']) @endphp @endif
{{--
--}} {{----}} {{--
--}}
@endforeach @endif @if(!isset($key) || empty($key)) @endif
@if(!empty($bilt)) {!! method_field('PUT') !!} @endif {{ csrf_field() }}
@endsection @section('footer-content') {{--Append Product--}} {{--Append images--}} @endsection