@extends('admin.layout.master') @section('custom_style') @section('content')

{{__('obs.complains')}}

@if(get_guard()=='customer') {{__('obs.add_new')}} @else @endif
@php $index_route = 'customer.complain.index'; if(get_guard()=='admin') $index_route = 'complain.index'; @endphp
@if(get_guard()=='admin')
@endif

{{--
--}}
@if(get_guard()=='admin') @endif @if(get_guard()=='admin') @endif @php $complainTypes = complainTypes() @endphp @foreach ($complaines as $key => $com) @if(get_guard()=='admin') @endif @if(get_guard()=='admin') @endif @endforeach
#{{__('obs.complained_by')}}{{__('obs.date')}} {{__('obs.complain_for')}} {{__('obs.product')}} {{__('obs.design_no')}} {{__('obs.quantity')}} {{__('obs.objection')}} {{__('obs.note')}} {{__('obs.status')}} {{__('obs.img')}}{{__('obs.action')}}
{{++$key}}{{$com->getParty->name_eng}}{{date('d-m-Y', strtotime($com->date))}} {{$complainTypes[$com->type]}} @forelse ($com->products as $product) {{$product->name_eng}} @if(!$loop->last),
@endif @empty - @endforelse
{{$com->design_no}} {{$com->quantity}} {{$com->getObjection->name}} {{$com->note}} {!! complainStatus(1)[$com->status] !!} @if($com->img) {{-- {{__('obs.image')}} --}} @endif {{__('obs.edit')}}
@include('inventory.complain.view_modal') @endsection @section('script') @endsection