@extends('layouts.admin.app') @section('content')
| Sr No | Date | Region | CAS NO | EC NO | CAS Name | UUID | Preregistration Number | Action |
|---|---|---|---|---|---|---|---|---|
| {{$i++}} | @if($n->created_at != "0000-00-00" && $n->created_at != "-0001-11-30 00:00:00") {{ $n->created_at->format('d-m-Y')}} @endif | {{$n->Region->name}} | {{$n->cas_no}} | {{$n->ec_no}} | {{$n->cas_name}} | {{$n->uuid}} | {{$n->preregistration_no}} | @if($n->type == 'pdf') @php $pdfdata = DB::table('sip_pdf')->where([['status', 1], ['cas_no', $n->cas_no], ['region_id', $n->region_id]])->first(); @endphp @if($pdfdata == NULL) @php $company = DB::table('company_uuid')->where([['cas_no', $n->cas_no], ['region_id', $n->region_id], ['uuid', $n->uuid]])->first(); @endphp @if($company != NULL) Pdf @endif @else Pdf @endif @else Pdf @endif |