@if (is_null($whas) || empty($whas))
@else
{{-- --}}
Currently No Information Available!
{{-- whas Table goes here --}}
Sl# | Date | Floor | Line | Section | Buyer | Style | Item | Hours | Actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ ++$sl }} | {{ \Carbon\Carbon::parse($whas->date)->format('d-M-Y') }} |
Floor {{ $whas->floor }} - {{ $whas->buyer }}, {{ $whas->style }}, {{ $whas->item }},{{ $whas->line }} - {{ \Carbon\Carbon::parse($whas->date)->format('d-M-Y') }}
@php
$whasLines = DB::table(
'working_hour_allocations',
)
->where('date', now()->format('Y-m-d'))
->where('floor', $whas->floor)
->where('buyer', $whas->buyer)
->where('style', $whas->style)
->where('item', $whas->item)
->where('line', $whas->line)
->distinct('start_time', 'end_time')
->get();
// dd($whasLines);
@endphp
Alter Data
Reject Data
|
{{ $whas->line }} | {{ $whas->section }} | {{ $whas->buyer }} | {{ $whas->style }} | {{ $whas->item }} | @php $hpd_timeEntry = DB::table('working_hour_allocations') ->where('date', now()->format('Y-m-d')) ->where('floor', $whas->floor) ->where('buyer', $whas->buyer) ->where('style', $whas->style) ->where('item', $whas->item) ->where('line', $whas->line) ->distinct('start_time', 'end_time') ->get(); // dd($hpd_timeEntry->count()); // dd($hpd_timeEntry); @endphp @if ($hpd_timeEntry->count() > 0) @foreach ($hpd_timeEntry as $timeEntry) {{-- @dd($timeEntry); --}} @if ($timeEntry->Total_Alter == null) @else {{ $timeEntry->start_time }}, @endif @endforeach @endif | @php // Query to get the latest entry for the given conditions $hpd_timeEntry = DB::table('working_hour_allocations') ->where('date', now()->format('Y-m-d')) ->where('floor', $whas->floor) ->where('buyer', $whas->buyer) ->where('style', $whas->style) ->where('item', $whas->item) ->where('line', $whas->line) ->latest('id') ->first(); // Use first() to get the single latest record @endphp @if ($hpd_timeEntry) @if ($hpd_timeEntry->Total_Alter === null) @else @endif @endif @can('QC-EDIT') @endcan |