@extends('layouts.master') @section('title') Tools Issue Detail @endsection @section('page-title') Tools Issue Detail @endsection @section('body') @endsection @section('content')
materialRequest->material_request_id) }}" class="btn btn-success me-1"> Add Tools Issue material_issue_id) }}" class="btn btn-info me-1"> Add Tools Return material_issue_id) }}" target="_blank" class="btn btn-success me-1"> Print
logo
{{ $issue->company->company_name ?? '' }}

{{ $issue->company->company_address ?? '' }}, {{ $issue->company->area->area_name ?? '' }}, {{ $issue->company->city->city_name ?? '' }}, {{ $issue->company->state->state_name ?? '' }}, {{ $issue->company->country->country_name ?? '' }}, {{ $issue->company->company_pincode ?? '' }}

GST No: {{ $issue->company->company_gstin ?? '' }}, Email: {{ $issue->company->company_email ?? '' }}, Phone No: {{ $issue->company->company_phone_no_1 ?? '' }}


TOOLS ISSUE


To,
{{ $issue->customer->customer_name ?? 'Customer Name' }}

{{ $issue->customer_address->customer_address ?? 'Vendor Address' }}, {{ $issue->customer_address->customer_pincode ?? 'Vendor Pincode' }}, {{ $issue->customer_address->area->area_name ?? 'Vendor Area' }}, {{ $issue->customer_address->city->city_name ?? 'Vendor City' }}, {{ $issue->customer_address->state->state_name ?? 'Vendor State' }}, {{ $issue->customer_address->country->country_name ?? 'Vendor Country' }},

{{-- @if ($issue->customer->customer_gst_no)

GST No: {{ $issue->customer->customer_gst_no ?? '001-234-5678' }}

@endif --}}
Request No

{{ $issue->materialRequest->material_request_prefix}}/ {{ $issue->materialRequest->material_request_financial_year}}/ {{ $issue->materialRequest->material_request_number}}

Issue No

{{ $issue->material_issue_prefix }}/{{ $issue->material_issue_financial_year }}/{{ $issue->material_issue_number }}

Issue Date

{{ \Carbon\Carbon::parse($issue->material_issue_date)->format('d/m/Y') ?? '' }}

Technician {{ $issue->employee->employee_first_name ?? '' }} {{ $issue->employee->employee_last_name ?? '' }}
Vehicle No {{ $issue->material_issue_vehicle_no ?? ''}}
@php // Group items by their product category and add sorting information $groupedItems = $issue->items->groupBy(function($item) { return $item->products->product_categories->product_category_name ?? 'Uncategorized'; }); // Prepare a sortable array with category names and sort orders $categoriesWithSortOrder = $groupedItems->map(function ($items, $categoryName) { $sortOrder = $items->first()->products->product_categories->product_category_sort_order ?? 0; return [ 'category_name' => $categoryName, 'sort_order' => $sortOrder, 'items' => $items ]; })->sortBy('sort_order'); @endphp @foreach ($categoriesWithSortOrder as $category)
{{ $category['category_name'] }}
{{-- --}} @foreach ($category['items'] as $index => $item) {{-- --}} @endforeach
Sr No Item Model No SizeHSN CodeDescription Issued Qty UOM
{{ $index + 1 }} {{ $item->products->product_name ?? '' }} {{ $item->products->product_model_no ?? '' }} {{ $item->products->product_size ?? '' }}{{ $item->products->product_hsn_code ?? '' }}{{ $item->material_issue_item_description ?? '' }} {{ $item->material_issue_qty }} {{ $item->products->product_unit_measurement ?? '' }}
@endforeach
{{--
--}}
From,
{{ $issue->company->company_name ?? '' }}
{{--
--}}
@endsection @section('scripts') @endsection