@php $i = 0; @endphp @forelse ($listjobs as $job) @php $i++; @endphp @php $limit = 40; $textLenght = Str::length($job->Ext_Description); $textDescription = Str::substr($job->Ext_Description, 0, $limit); @endphp @if ($textLenght > $limit) @else @endif @php $limit = 40; $textLenght = Str::length($job->Description); $textDescription = Str::substr($job->Description, 0, $limit); @endphp @if ($textLenght > $limit) @else @endif {{-- --}} @empty @endforelse
# Job Spec. Est. Vessel Depart. Internal Description External Description Order Qty. Order Date Due Date Status Customer Rep. Part Options
{{ $i }} {{ $job->Job }} @if ($job->specsheet) {{ $job->specsheet->sheetcode }} @endif @if ($job->Estimate_Code) {{ $job->Estimate_Code }} @endif {{ $job->Customer_PO }} {{ $job->Rev }}{{ $textDescription . '...' }}{{ $job->Ext_Description }}{{ $textDescription . '...' }}{{ $job->Description }}{{ $job->Order_Quantity }} {{ date('m/d/Y', strtotime($job->Order_Date)) }} {{ $job->Due_Date ? date('m/d/Y', strtotime($job->Due_Date)) : '' }} {{ $job->status->name }} {{ $job->Customer_Code ? $job->customer->Name : '' }}{{ $job->customer ? 'Error' : '' }}{{ $job->Sales_Rep }} {{ $job->Part_Number }} No data