@extends('layouts/layoutMaster') @section('title', 'Add Materials') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', 'resources/assets/vendor/libs/animate-css/animate.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss', 'resources/assets/vendor/libs/flatpickr/flatpickr.scss', 'resources/assets/vendor/libs/bootstrap-datepicker/bootstrap-datepicker.scss', 'resources/assets/vendor/libs/bootstrap-daterangepicker/bootstrap-daterangepicker.scss', 'resources/assets/vendor/libs/jquery-timepicker/jquery-timepicker.scss', 'resources/assets/vendor/libs/pickr/pickr-themes.scss' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/autosize/autosize.js', 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js', 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/flatpickr/flatpickr.js', 'resources/assets/vendor/libs/bootstrap-datepicker/bootstrap-datepicker.js', 'resources/assets/vendor/libs/bootstrap-daterangepicker/bootstrap-daterangepicker.js', 'resources/assets/vendor/libs/jquery-timepicker/jquery-timepicker.js', 'resources/assets/vendor/libs/pickr/pickr.js' ]) @endsection @section('page-script') @vite(['resources/assets/js/forms-pickers.js']) @endsection @section('content')
{{ isset($material) ? 'Edit Material' : 'Add Material' }}
@csrf @if(isset($material)) @method('PUT') @endif

{{--
--}}

{{--
--}}

=
{{--
--}}
{{--
--}}


Cancel
{{-- @if (Auth()->user()->hasRole('Super Admin'))
@endif --}}
{{--
Details
--}}
{{--
--}}
{{-- --}} {{-- --}} {{-- --}} @if(isset($purchaseHistoryN) && $purchaseHistoryN->isNotEmpty()) @foreach($purchaseHistoryN as $history) @php // $po = \App\Models\Order::where('id', $history->order_id)->first(); // dd($po); @endphp {{-- @if($history->status == 'approved') @elseif($history->status == 'pending') @else @endif --}} {{-- --}} @endforeach @else @endif
Po No. Po DatePack SizeQty Net Price TotalStatusAction
{{ $history->orders->po_number }} {{ $history->orders->po_date }} {{ number_format($history->quantity, 2) }} {{ number_format($history->NetPrice, 2) }} {{ $history->Total }}ApprovedPendingRejected
No purchase history available.
{{--
Consume In
--}} {{-- --}} @if(isset($batchOrderHistory) && $batchOrderHistory->isNotEmpty()) @foreach($batchOrderHistory as $batchHistory) @endforeach @endif
Batch Order No. Product ConsumedMKT By Product Code Packing Master Card No. Batch Size UOM Req Qty UOM Action
{{ $batchHistory->batchOrder->batch_no }} {{ $batchHistory->batchOrder->product->name }} {{ $batchHistory->total_kg }}{{ $batchHistory->material->consumptionUom->name }}
{{--
--}}
{{--
Stock
--}} {{-- --}} @if(isset($StockData) && $StockData->isNotEmpty()) @foreach($StockData as $stock) @if($stock->status == 'approved') @elseif($stock->status == 'pending') @elseif($stock->status == 'inprocess') @else @endif @endforeach @endif
Batch No Inward No. Pack Size Qty Total Qty Available Qty StatusAction
{{ $stock->batch_no }} {{ $stock->materialinventor_number }} {{ $stock->pack_size }} {{ $stock->qty }} {{ $stock->total_qty }} {{ $stock->available_stock }}ApprovedPendingIn ProcessRejected
{{--
--}}
Additional Info
@endsection