@extends("layouts.dashboard.app") @section("page-nav-title")

{{__('documents')}}

{{__('Control and view all documents')}}

@endsection @section("content") @include("layouts.main-parts.page-message") {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}}
"out","id"=>request()->id] )}}" id="main_form" method="post"> @csrf @if(!request()->id)
{{-- --}}
{{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}}
@endif
@if(request()->id) @endif
id) readonly @endif id="type" type="text" name="type" placeholder="{{__('Enter type')}}" value="{{$documentHeader ? $documentHeader->type : inputValue("type")}}" >
@error("type")
{{$message}}
@enderror
{{--
--}}
id) readonly @endif id="document_number" type="text" name="document_number" placeholder="" value="{{$documentHeader ? $documentHeader->document_number : inputValue("document_number")}}">
@error("document_number")
{{$message}}
@enderror
@error("date")
{{$message}}
@enderror
@error("note")
{{$message}}
@enderror
{{-- --}} @if($confirmDocument == 0) @endif @if($documentHeader) @foreach($documentHeader->documentDetails as $index=>$details) @if($confirmDocument == 0) @endif @endforeach @endif {{-- --}} @if($confirmDocument == 0) @endif {{-- --}}
#ID {{__('item name')}}{{__('Cost')}}{{__('Total Quantity')}} {{__("Control")}}
{{++$index}} {{$details->competition->itemProberity[0]->itemWithTrashed->getNameAttribute() }} @foreach($details->competition->itemProberity as $prob) @if($prob->addons != null) {{ucfirst($prob->addons->addOnsTitle->getNameAttribute())}} : {{$prob->addons->getNameListAttribute()}} @endif @endforeach {{$details->cost}} {{$details->quantity}} {{-- --}} $details->id])}}" class="control-link remove">
#ID
@if($confirmDocument == 0)
@endif
{{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} @endsection @section("scripts") @endsection