From 98bfd2ed5fe3f5658135c0b3f429261c172fec9a Mon Sep 17 00:00:00 2001 From: A1Gard Date: Thu, 29 Jun 2023 14:26:02 +0330 Subject: [PATCH] fix create problem --- .../views/admin/invoice/invoiceForm.blade.php | 78 ++++++++++--------- 1 file changed, 42 insertions(+), 36 deletions(-) diff --git a/resources/views/admin/invoice/invoiceForm.blade.php b/resources/views/admin/invoice/invoiceForm.blade.php index eec202b..61c5f4e 100755 --- a/resources/views/admin/invoice/invoiceForm.blade.php +++ b/resources/views/admin/invoice/invoiceForm.blade.php @@ -29,9 +29,9 @@ @@ -76,43 +76,49 @@ value="{{old('tracking_code',$invoice->tracking_code??null)}}"/> - @foreach($invoice->products as $product ) + @if(isset($invoice)) + @foreach($invoice->products as $product ) -
-
-
-
-
- - -
-
-
-
- - - -
-
+
+
+
+
+
+ + +
+
+
+
+ + + +
+
-
-
-
+
+
+
+ + @endforeach + @endif - @endforeach