@php
$status = [
0 => ['text' => 'Deactive', 'class' => 'badge badge-warning badge-pill'],
1 => ['text' => 'Active', 'class' => 'badge badge-info badge-pill'],
];
$current = $status[$showDetails->status] ?? [
'text' => 'Unknown',
'class' => 'badge rounded-pill bg-secondary',
];
@endphp
@extends('admin.layouts.layouts')
@section('title', 'View Product')
@section('page-css')
@endsection
@section('content')
{{-- Add Stock Modal --}}
{{-- Product Stock Details Modal --}}
ID:
{{ $showDetails->id ?? '' }}
Name:
{{ $showDetails->name ?? '-' }}
Effective Date:
{{ $showDetails->effective_date ? date('d-m-Y', strtotime($showDetails->effective_date)) : '' }}
Buying Price:
{{ number_format($showDetails->rate ?? 0, 2) }}
Created Date:
{{ $showDetails->created_at ? date('d-m-Y', strtotime($showDetails->created_at)) : '' }}
Status:
{{ $current['text'] }}
Description:
{{ strip_tags(html_entity_decode($showDetails->description)) ?? '' }}
Product Type:
{{ $showDetails->productType->name ?? '' }}
Size:
{{ number_format($showDetails->size_value ?? 0, 0) }}
{{ $showDetails->size->name ?? '' }}
Opening Stock:
{{ number_format($showDetails->opening_stock ?? 0, 0) }}
Selling Price:
{{ number_format($showDetails->selling_price ?? 0, 2) }}
Created By:
{{ $showDetails->users->name ?? '-' }}
Image:
@if ($showDetails->image)
 }})
@else
No image available
@endif
| No |
Name |
Buying Price |
Selling Price |
Effective Date |
Updated Date |
Updated By |
Actions |
| # |
Date |
Stock |
Buying |
Selling |
Buying Price |
Selling Price |
@endsection
@section('page-js')
@endsection