@extends('admin.layouts.layouts') @section('title', 'View Product') @section('content')
Product View
← Back
ID:
{{ $showDetails->id ?? '' }}
Name:
{{ $showDetails->name ?? '-' }}
Description:
{{ $showDetails->description ?? '' }}
Rate:
{{ $showDetails->rate ?? '' }}
Image:
@if ($showDetails->image) Pesticide Image @else No image available @endif
Start Date:
{{ $showDetails->start_date ? \Carbon\Carbon::parse($showDetails->start_date)->format('d-m-Y') : '' }}
End Date:
{{ $showDetails->end_date ? \Carbon\Carbon::parse($showDetails->end_date)->format('d-m-Y') : '' }}
Created By:
{{ $showDetails->users->name ?? '-' }}
Created At:
{{ $showDetails->created_at->format('d-m-Y h:i A') ?? '' }}
Status:
@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 {{ $current['text'] }}
Product History
No Name Rate Start Date End Date Actions
@endsection @section('page-js') @endsection