Home>

There are two such requests:

$ Query= $ Request->
get ('Query');
    If (! $ Query) {
        $ List1= Countertegent :: WHERE ('VISIBLE', '=', TRUE);
    }
    ELSE {
        $ List1= Countertegent :: WHERE ('NAME', 'LIKE', '%'. $ Query. '%')
                ->
Orwhere ('Inn', 'Like', '%'. $ Query. '%')
                ->
Where ('Visible', '=', True);
    }
    if ($ District OR $ Subject) {
        /* We save in the session * /
        $ List= $ List->
Where ('subject_id', '=', $ subject);
    }
    $ amount_from= $ Request->
get ('amount_from');
    If (! $ amount_from) {
        $ List= Order :: WHERE ('VISIBLE', '=', TRUE) ->
OrderBy ('Order_Date', 'Desc');
    }
    ELSE {
        $ List= Order :: WHERE ('Amount', '>
', $ amount_from) ->
WHERE ('Visible', '=', True)
                ->
OrderBy ('Order_Date', 'Desc');
    }
    $ List= $ List->
paginate (50);
    $ List1= $ List1->
OrderBy ('id', 'desc') ->
paginate (50);

In the template I want to display in one table, but when you declare two cycles, the table breaks, how can they register them?

@Foreach ($ List1 AS $ REC)
        ≪
TR Class= "TR _ {{$ Rec->
id}} ">
            ≪
TD >
                ≪
P >
{{date ('d.m.y (H: i)', Strtotime ($ Rec->
order_date))}} <
/P >
                ≪
P >
                    @if ($ Rec->
Auction_Date)
                        {{date ('d.m.y (H: i)', Strtotime ($ Rec->
AUCTION_DATE))}}
                    @else
                        &
mdash;
                    @endif.
                ≪
/P >
            ≪
/TD >
            ≪
TD >
                ≪
? //Company {{$ Rec->
Name}} (TIN: {{$ Rec->
Inn}}) <
BR >
//? ≫
                @if (! Empty ($ Rec->
Director))
                    {!! $ Rec->
Director !!}
                @else
                    &
mdash;
                @endif.
            ≪
/TD >
            ≪
TD >
{{$ Rec->
Amount}} <
/TD >
            ≪
TD >
{{$ Rec->
BILL}} <
/TD >
            ≪
TD >
                {{$ Rec->
law_id}}
                ≪
P >
                    @if ($ Rec->
guarantee== 'working')
                        Execution
                    @endif.
                    @if ($ Rec->
Guarantee== 'Tender')
                        Tender
                    @endif.
                    @if ($ Rec->
Guarantee== 'Guarantee')
                        Warranty
                    @endif.
                    @if ($ Rec->
Guarantee== 'Prepay')
                        Prepaid expense
                    @endif
                ≪
/P >
            ≪
/TD >
            ≪
TD >
                ≪
P >
up to {{date ('d.m.y', StrTotime ($ Rec->
guarantee_Expires))}} <
/P >
            ≪
/TD >
            ≪
TD >
                @if ($ Rec->
STATUS== 'DRAFT')
                    Draft
                @else
                    Transferred to Bank
                @endif
            ≪
/TD >
            @Foreach ($ List1 AS $ REC)
            ≪
TD width= "200px" >
                {{$ Rec->
Name}} <
BR >
                ≪
? //@if ($ Rec->
Type== 'Company') [legal entity @ELSE individual entrepreneur @endif] <
BR >
 //? ≫
                Inn: {{$ Rec->
Inn}}
                ≪
? //<
BR >
OGRN: {{$ Rec->
ogrn}} //? >
                {{$ Rec->
subjects}} {{$ Rec->
Districts}}
            ≪
/TD >
            ≪
TD width= "200px" >
{{$ Rec->
Address}} <
/TD >
            ≪
TD >
                @if (! Empty ($ Rec->
Director))
                    {!! $ Rec->
Director !!}
                @else
                    {{$ Rec->
Name}}@endif <
/TD >
            ≪
TD >
                {!! $ Rec->
phones !!}
                ≪
? //<
P >
≪
a href= "{{ROUTE ('admin_counter_agents')}}? VBank= {{$ Rec->
id}} "class="vbank ">
Vbankinfo <
/a >
≪
/P >
 //? ≫
            ≪
/TD >
            ≪
TD >
                {!! $ Rec->
Emails !!}
                ≪
? //<
P >
≪
a href= "{{ROUTE ('admin_counter_agents')}}? VBank= {{$ Rec->
id}} "class="vbank ">
Vbankinfo <
/a >
≪
/P >
 //? ≫
            ≪
/TD >
        ≪
/TR >
        @endforeach.
    @endforeach.

Internal @Foreach is not closed there (for )

Knyaz712021-08-23 00:48:09

@ KNYAZ71 I get a conversion curve, please look

zadrog2021-08-22 09:24:04