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

INDENT LIST

@php $statusArray=[1=>'PENDING',2=>'REQUESTED',3=>'ISSUED',4=>'ACCEPTED',5=>'FINISHED']; $classArray=[1=>'warning',2=>'info',3=>'primary',4=>'success',5=>'danger']; @endphp
{{--
--}}
{{-- --}}
{{--
--}} {{--
--}}
{{--
--}}

@forelse ($indents as $key=>$indent) @empty @endforelse
# Date Indent No Finished Product By Store Qty Finished Qty Staus Action Print
{{ ($key+1) }} {{ date('d-m-Y h:i A',strtotime($indent->created_at)) }} {{ $indent->indent_no }} {{ $indent->product?$indent->product->name_eng:'N/A' }} {{ $indent->madeBy->name }} {{ $indent->toStore->name_eng }} {{ $indent->indent_qty }} {{ $indent->finished_qty }} {{$statusArray[$indent->status]}}
@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