I'm creating a booking app in which there's two date pickers; a start date (DatePicker_11) and a finishing date (DatePicker_16), and two time slots; a start time and an end time. It connects with a SharePoint page (LRM) where the data is stored.
I want to book several days, with the start date having the start time specified until 8pm, the end date having the end date having a start time of 8am until the specified end time. The in-between dates should have a start time of 8am and an end time of 8pm.
The code I have so far for the submit button is as follows but it sets the same start and end time for all entries. There's also a popup with a visibility called _popup that is set to true if the values are left blank which is why there's an if statement;
Set(StarttimeLRM, Hour_16.Selected.Value & ":" & Minute_14.Selected.Value);
Set(EndTimeLRM, Hour_15.Selected.Value & ":" & Minute_15.Selected.Value);
If(Dropdown_6.Selected.Value = "Please Select" || IsBlank(Email_10), Set(_popup,true),
ForAll(AddColumns(FirstN([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],
DateDiff(DatePicker_11.SelectedDate,DatePicker_16.SelectedDate,Days)+1),
"Day","Day "&(Value+1),"Date",DateAdd(DatePicker_11.SelectedDate,Value,Days)),
Patch(LRM,
Defaults(LRM),
{Title:Resource_6.Selected.Value,
Date_LRM:Date,
Email_LRM:Email_10,
Starttime_LRM:TimeValue("06:00 AM"),
Endtime_LRM:TimeValue("20:00 PM")})

I've also tried microsoft flow after using patch using the update item in SharePoint flow but couldn't get it working.
@powerapps @sharepointguy @WarrenBelz @mdevaney