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

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

@if(get_guard()=='customer') {{lt('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
#{{lt('obs.complained_by')}}{{lt('obs.date')}} {{lt('obs.complain_for')}} {{lt('obs.product')}} {{lt('obs.design_no')}} {{lt('obs.quantity')}} {{lt('obs.objection')}} {{lt('obs.note')}} {{lt('obs.status')}} {{lt('obs.img')}}{{lt('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) {{-- {{lt('obs.image')}} --}} @endif {{lt('obs.edit')}}
@include('inventory.complain.view_modal') @endsection @section('script') @endsection