@extends('layouts.admin.app') @section('content')
| Sr No | Region | Company Name | CAS NO | EC NO | UUID | Date | Cost | @if($flag == 'false')Action | @endif @if($flag == 'true')Action | @endif|
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $i++ }} | {{ $n->Region->name }} | {{ $n->cas_no }} | {{ $n->ec_no }} | {{ $n->uuid }} | {{ $n->created_at->format('d-m-Y') }} | @if($flag == 'false')@if($n->request_status_id == config('app.PENDING_REQUEST')) @endif | @endif @if($flag == 'true'){{$n->cost}}€ |
@php
$company = DB::table('company_uuid')->where('uuid', $n->uuid)->first();
$invoice = DB::table('invoice')->where([['cas_no', $n->cas_no], ['company_uuid', $n->uuid]])->first();
@endphp
View SIEF
@if(!DB::table('invoice')->where([['cas_no', $n->cas_no], ['company_uuid', $n->uuid]])->exists())
Create Invoice @else View Invoice @if($n->company != null and $n->Company->payment_received == '') Follow Up Follow Up History @endif @endif @if($n->company != null and $n->Company->invoice_sent == '') Mark as Sent @else @endif @if(DB::table('loa')->where([['cas_no',$n->cas_no],['uuid',$n->uuid],['region_id',$n->region_id]])->exists()) LOA PDF @else Create LOA @endif @if($n->company != null and $n->Company->payment_received == '') Mark as Payment Received @else Payment Received by {{ $n->paymentreceived ?? '' }} @endif @if($n->company != null and $n->Company->token_sent == '' and $n->Company->token_sent == NULL) Mark as Token Sent @else Token Sent by {{ $n->tokenlogs ?? '' }} @endif |
@endif