@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 Pesticide') @section('page-css') @endsection @section('content') {{-- Add Stock Modal --}} {{-- Pesticide Stock Details Modal --}}
Pesticide Details
Back Add Stock
ID:
{{ $showDetails->id ?? '' }}
Size:
{{ number_format($showDetails->size_value ?? 0, 0) }} {{ $showDetails->size->name ?? '' }}
Buying Price:
{{ number_format($showDetails->price ?? 0, 2) }}
Effective Date:
{{ $showDetails->effective_date ? date('d-m-Y', strtotime($showDetails->effective_date)) : '' }}
Created By:
{{ $showDetails->users->name ?? '-' }}
Image:
@if ($showDetails->image) Pesticide Image @else No image available @endif
Name:
{{ $showDetails->name ?? '-' }}
Opening Stock:
{{ number_format($showDetails->opening_stock ?? 0, 0) }}
Selling Price:
{{ number_format($showDetails->selling_price ?? 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)) ?? '' }}
Pesticide History
No Name Buying Price Selling Price Effective Date Updated Date Updated By Actions
Pesticide Daily Stock
# Date Stock Buying Selling Buying Price Selling Price
@endsection @section('page-js') @endsection