@extends('layouts/layoutMaster') @section('title', 'COA') @section('vendor-style') @vite('resources/assets/vendor/libs/flatpickr/flatpickr.scss') @endsection @section('page-style') @vite('resources/assets/vendor/scss/pages/app-invoice.scss') @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/flatpickr/flatpickr.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js' ]) @endsection @section('page-script') @vite('resources/js/print-coa.js') @endsection {{-- @section('page-script') @vite([ 'resources/assets/js/offcanvas-add-payment.js', 'resources/assets/js/offcanvas-send-invoice.js' ]) @endsection --}} @section('content')
Raw Material Certificate of Analysis of {{ strtoupper($bom_data->product->name) }}

Product Name.: {{ $bom_data->product->name }}

Product Code: {{ $bom_data->product->code }}

Batch No.: {{ $batchOrder->batch_no }}

Batch Size: {{ $batchOrder->batch_size }}


{{-- @if($order)
PO Date: {{ $order->po_date }}
PO Number: {{ $order->po_number }}
@endif --}}

Plot No: {{ $company->billing_address }}

Phone No: {{ $company->phone_no }} | Email: {{ $company->email }}

GST: {{ $company->gst }} | CIN No: {{ $company->cin_no }}




{{--
Name of Product : {{ $bom_data->product->name }}
Name of Mfgr. : -- Material Code : {{ $bom_data->product->code }}
Name of Supplier : SHREE BHRAMANI ACID CHEMICAL A.R. No. : AR/RMM/23/40063
Batch No. : {{ $batchOrder->batch_no }} Received Date : 30-07-23
Mfg. Date : -- Interim Released Dt. : 03-08-23
Exp. Date : -- Inward No. : ASIAERM23000036
Quantity Received : 250.00 kg
Quantity Released : 249.93 kg
Quantity Sampled : 0.070 kg

--}}
@php $itemIndex = 1; @endphp @if($BatchOrderTesting->isNotEmpty()) @foreach ($BatchOrderTesting as $processId => $testings) @foreach ($testings as $index => $testing) @endforeach @endforeach @else @foreach ($bom_testings as $processId => $testings) @foreach ($testings as $index => $testing) @endforeach @endforeach @endif
S.No Test Specification Result
{{ $testings->first()->batchProcess->process_name ?? 'N/A' }}
{{ $itemIndex++ }} {{ $testing->batchTest->test_description }} {{ $testing->batchTest->standards }} {{ $testing->description }}
{{ $testings->first()->bom_process->process_name ?? 'N/A' }}
{{ $itemIndex++ }} {{ $testing->test_description ?? 'N/A' }} N/A N/A
{{--
@php $gstGroups = []; foreach ($order->orderItems as $item) { $itemNetPrice = $item->NetPrice * $item->quantity; $sgstRate = (float) $item->material->sgst ?? 0; $cgstRate = (float) $item->material->cgst ?? 0; $igstRate = (float) $item->material->igst ?? 0; $key = "{$sgstRate}_{$cgstRate}_{$igstRate}"; if ($vendor && $firstItem->material->company) { $vendorState = $vendor->state; $companyState = $firstItem->material->company->billing_state; if ($vendorState === $companyState) { $sgstAmount = ($itemNetPrice * $sgstRate / 100); $cgstAmount = ($itemNetPrice * $cgstRate / 100); $igstAmount = 0; } else { $sgstAmount = 0; $cgstAmount = 0; $igstAmount = ($itemNetPrice * $igstRate / 100); } if (!isset($gstGroups[$key])) { $gstGroups[$key] = [ 'sgstAmount' => 0, 'cgstAmount' => 0, 'igstAmount' => 0, 'totalNetPrice' => 0, 'sgstRate' => $sgstRate, 'cgstRate' => $cgstRate, 'igstRate' => $igstRate, ]; } $gstGroups[$key]['totalNetPrice'] += $itemNetPrice; $gstGroups[$key]['sgstAmount'] += $sgstAmount; $gstGroups[$key]['cgstAmount'] += $cgstAmount; $gstGroups[$key]['igstAmount'] += $igstAmount; } } @endphp @foreach($gstGroups as $group) @endforeach
Taxable Value SGST (%) SGST Amount CGST (%) CGST Amount IGST (%) IGST Amount
{{ number_format($group['totalNetPrice'], 2) }} {{ number_format($group['sgstRate'], 2) }} {{ number_format($group['sgstAmount'], 2) }} {{ number_format($group['cgstRate'], 2) }} {{ number_format($group['cgstAmount'], 2) }} {{ number_format($group['igstRate'], 2) }} {{ number_format($group['igstAmount'], 2) }}
--}}
Note: It was a pleasure working with you and your team. We hope you will keep us in mind for future freelance projects. Thank You!
{{-- --}} {{-- --}}
@include('_partials/_offcanvas/offcanvas-send-invoice') @include('_partials/_offcanvas/offcanvas-add-payment') @endsection