@extends('admin.layout.master') @section('title','INDENT MANAGEMENT') @section('custom_style') @endsection @section ('content')

{{__('obs.indent')}} {{__('obs.list')}}

@php $statusArray=[1=>'PENDING',2=>'REQUESTED',3=>'ISSUED',4=>'ACCEPTED',5=>'FINISHED']; $classArray=[1=>'warning',2=>'info',3=>'primary',4=>'success',5=>'danger']; $action_id=getDefaultSettings(26)->action_id; @endphp
{!!getDateInput('start_date','start_date',Request()->start_date)!!} {!!getDateInput('end_date','end_date',Request()->end_date)!!}
{{--
--}}
@if($action_id) @endif @forelse ($indents as $key=>$indent) @if($action_id) @endif @empty @endforelse
# {{__('obs.date')}} {{__('obs.indent_no')}} {{__('obs.finished_product')}} {{__('obs.by')}} {{__('obs.from')}} {{__('obs.qty')}} {{__('obs.finished_qty')}} staus{{__('obs.approvals')}}{{__('obs.action')}} {{__('obs.print')}}
{{ ($key+1) }} {{ date('d-m-Y h:i A',strtotime($indent->created_at)) }} {{ $indent->indent_no }} {{ $indent->indent_type == 2 ? '(R)' : '' }} {{ $indent->product?$indent->product->name_eng:'N/A' }} {{ $indent->madeBy->name }} {{ $indent->madeStore->name_eng }} {{ $indent->indent_qty }} {{ $indent->finished_qty }} {{$statusArray[$indent->status]}} @if(($indent->approve_status==1)) @else {!! getApprovalInputField($indent->id,$action_id) !!} @endif
@if($indent->status==1)
@if(checkAuthPermission('indent.update')) @endif
@endif @if($indent->status!=5)
@if($indent->status!=2) @if(checkAuthPermission('indent.request_to_submit')) @endif @endif
@endif @if($indent->status == 4) @if(checkAuthPermission('production.add')) @endif @endif
{{--
--}} @if(checkAuthPermission('indent.print')) @endif {{--
--}} @if($indent->status>3) {{--
--}} @if(checkAuthPermission('issue.print')) {{$indent->finished_qty?'Production':'Issue'}} @endif {{--
--}} @endif
{{-- {!! $invoices->links() !!} --}}
@include('inventory.indent.indent_edit_modal') @endsection @section('script') {{-- --}} {{-- @include('inventory.indent.recipe_js') --}} @stop