@extends('dashboard.layout.partials.dashboard') @section('content')
| Product Name | Quantity | Price | Category | Image | Created at | Edit | Delete | |
|---|---|---|---|---|---|---|---|---|
| {{$products->product_name}} | {{$products->qty}} | {{$products->price}} | @php $category=App\Models\SubRole::where('id',intval($products->category))->first(); @endphp{{$category->sub_role_name}} | @php $images=$products->product_image; if($images){ $images=json_decode($images); } $current_url = "http" . (isset($_SERVER['HTTPS']) ? "s" : "") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $parsed_url = parse_url($current_url); $base_url = $parsed_url['scheme'] . '://' . $parsed_url['host']; @endphp @if($images)N/A | @endif{{$products->created_at}} | Edit | Delete |