@extends('layouts.default', ['appTopMenu' => true]) @php use App\Models\inventory\Purchase_model; use App\Http\Controllers\inventory\Purchase; @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'=>'buyBackForm','id'=>'buyBackForm','url'=>'inventory/buy_back', 'class'=>'form-horizontal' ,'method' => 'POST')) }}
Purchase Item Details
{!! Form::Label('Purchase-Order-No', 'Purchase Order No') !!} {{ $errors->first('order_id') }}
{!! Form::Label('Product', 'Product') !!} {{ $errors->first('product') }}
{{ $errors->first('model_no') }}
{{ Form::close() }} @if (!empty($items_details))
Purchase Item Details
{{ Form::open(array('name'=>'purchaseAgainForm', 'id'=>'purchaseAgainForm' ,'class'=>'form-horizontal' ,'method' => 'POST')) }} @foreach ($items_details as $data) @endforeach
Items List
# Product Company Model No Serial No Item Recipt Date Remark Place
{{ $loop->iteration }} {{ $data->pname }} {{ $data->cname }} {{ $data->model_no }} {{ $data->sr_no }} {{ \Carbon\Carbon::parse($data->item_receiving_date)->format('d-m-Y') }} {{ $data->remark }} {{ $data->district}} {{ $data->bench}}
Purchase Item Details
{!! Form::Label('Serial-no', 'By Back Date') !!}
{!! Form::Label('Purchase-Order-No', 'Select New P.O') !!}
{!! Form::Label('By-Back-Value', 'By Back Value') !!}
{!! Form::Label('Remarks', 'By Back Remarks') !!}
{{ Form::close() }} @elseif(!empty(Request::get('order_id') && !empty(Request::get('product'))))

Purchased Items Details

{{ Form::open(array('name'=>'purchaseAgainForm', 'id'=>'purchaseAgainForm' ,'class'=>'form-horizontal' ,'method' => 'POST')) }}
Items List
# Product Company Model No Serial No Item Recipt Date Remark Place
No results found.
@endif
@endsection