@extends('layouts/billing_layout') @section('title', '| Product Agreement') @section('content') @include('successMsg') {{-- --}}

Product Agreement LIST

{{ csrf_field() }} @foreach ($billingProductAssaigns as $billingProductAssaign) @endforeach
SL# Company Name Product Name Product Package Cancel Date Action
{{ ++$no }} {{ DB::table('billing_client')->where('id', $billingProductAssaign->clientcompanyId)->value('clientCompanyName') }} {{ DB::table('billing_product')->where('id', $billingProductAssaign->productId)->value('name') }} @php $productPackageIds = DB::table('billing_product') ->where('id', $billingProductAssaign->productId) ->value('productPackge'); if ($productPackageIds != null) { $productStr = str_replace( ['"', '[', ']'], '', $productPackageIds, ); $productArr = array_map('intval', explode(',', $productStr)); $productName = ''; foreach ($productArr as $key => $prodcutId) { $temp = DB::table('billing_product') ->where('id', $prodcutId) ->value('name'); if ($key == 0) { $productName = $temp; } else { $productName = $productName . ', ' . $temp; } } } else { $productName = ''; } @endphp {{ $productName }} @if ($billingProductAssaign->cancelDate == '0000-00-00') {{ '-' }} @else {{ $billingProductAssaign->cancelDate }} @endif