@extends('layouts.default', ['appTopMenu' => true]) @php use App\Models\inventory\Purchase_model; @endphp @section('title','Dashboard') @push('scripts') @endpush @section('content')
@if (session('status'))
{!! session('status') !!}
@elseif(session('failed'))
{{ session('failed') }}
@endif @if(\Session::has('success'))
{{\Session::get('success')}}
@endif {{ Form::open(array('name'=>'productForm', 'url' => 'inventory/save_product', 'class'=>'form-horizontal' ,'method' => 'POST')) }} @if( !empty($product_details->pid)) @endif
Add Product Form
{{ $errors->first('product_name') }}
{{ $errors->first('category_name') }}
{{ Form::close() }}
Product Details
@foreach ($results as $data) @endforeach
# Product Name Category Name Status
{{ $loop->iteration }} {{ $data->pname }} {{ $data->category }}
{{ Form::close() }}
@endsection