@forelse ($jobs as $job)
|
{{ $job->buyer }} |
{{ $job->style }} |
{{ $job->po }} |
{{ $job->item }} |
{{ $job->order_quantity }} |
@php
$sewing_qty = DB::table('sewing_balances')
->where('job_no', $job->job_no)
->get()
->sum('sewing_balance');
$total_sewing_qty = $job->order_quantity - $sewing_qty ?? 0;
@endphp
|
@php
$total_shipped_qty = DB::table('shipments')
->where('job_no', $job->job_no)
->get()
->sum('shipped_qty');
@endphp
|
{{ $job->order_received_date }} |
{{ $job->delivery_date }} |
@if (auth()->user()->role_id == 1)
@endif
|
@empty
No Job Found |
@endforelse