forked from InvoiceShelf/InvoiceShelf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ide_helper_models.php
1629 lines (1595 loc) · 97.1 KB
/
_ide_helper_models.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// @formatter:off
// phpcs:ignoreFile
/**
* A helper file for your Eloquent Models
* Copy the phpDocs from this file to the correct Model,
* And remove them from this file, to prevent double declarations.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace App\Models{
/**
*
*
* @property int $id
* @property string|null $name
* @property string|null $address_street_1
* @property string|null $address_street_2
* @property string|null $city
* @property string|null $state
* @property int|null $country_id
* @property string|null $zip
* @property string|null $phone
* @property string|null $fax
* @property string|null $type
* @property int|null $user_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int|null $company_id
* @property int|null $customer_id
* @property-read \App\Models\Company|null $company
* @property-read \App\Models\Country|null $country
* @property-read \App\Models\Customer|null $customer
* @property-read mixed $country_name
* @property-read \App\Models\User|null $user
* @method static \Database\Factories\AddressFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereAddressStreet1($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereAddressStreet2($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereCity($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereCustomerId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereFax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address wherePhone($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereState($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Address whereZip($value)
*/
class Address extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string|null $logo
* @property string|null $unique_hash
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $slug
* @property int|null $owner_id
* @property string|null $vat_id
* @property string|null $tax_id
* @property-read \App\Models\Address|null $address
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $customFieldValues
* @property-read int|null $custom_field_values_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomField> $customFields
* @property-read int|null $custom_fields_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Customer> $customers
* @property-read int|null $customers_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Estimate> $estimates
* @property-read int|null $estimates_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ExchangeRateLog> $exchangeRateLogs
* @property-read int|null $exchange_rate_logs_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ExchangeRateProvider> $exchangeRateProviders
* @property-read int|null $exchange_rate_providers_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\ExpenseCategory> $expenseCategories
* @property-read int|null $expense_categories_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Expense> $expenses
* @property-read int|null $expenses_count
* @property-read mixed $logo_path
* @property-read mixed $roles
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Invoice> $invoices
* @property-read int|null $invoices_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Item> $items
* @property-read int|null $items_count
* @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection<int, \Spatie\MediaLibrary\MediaCollections\Models\Media> $media
* @property-read int|null $media_count
* @property-read \App\Models\User|null $owner
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\PaymentMethod> $paymentMethods
* @property-read int|null $payment_methods_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Payment> $payments
* @property-read int|null $payments_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\RecurringInvoice> $recurringInvoices
* @property-read int|null $recurring_invoices_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CompanySetting> $settings
* @property-read int|null $settings_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\TaxType> $taxTypes
* @property-read int|null $tax_types_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Unit> $units
* @property-read int|null $units_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\User> $users
* @property-read int|null $users_count
* @method static \Database\Factories\CompanyFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereLogo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereOwnerId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereTaxId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereUniqueHash($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Company whereVatId($value)
*/
class Company extends \Eloquent implements \Spatie\MediaLibrary\HasMedia {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $option
* @property string $value
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Company|null $company
* @method static \Database\Factories\CompanySettingFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereCompany($company_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereOption($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CompanySetting whereValue($value)
*/
class CompanySetting extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $code
* @property string $name
* @property int $phonecode
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Address> $address
* @property-read int|null $address_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Country wherePhonecode($value)
*/
class Country extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string $code
* @property string|null $symbol
* @property int $precision
* @property string $thousand_separator
* @property string $decimal_separator
* @property int $swap_currency_symbol
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereDecimalSeparator($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency wherePrecision($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereSwapCurrencySymbol($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereSymbol($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereThousandSeparator($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Currency whereUpdatedAt($value)
*/
class Currency extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string $slug
* @property string $label
* @property string $model_type
* @property string $type
* @property string|null $placeholder
* @property array<array-key, mixed>|null $options
* @property int|null $boolean_answer
* @property string|null $date_answer
* @property string|null $time_answer
* @property string|null $string_answer
* @property int|null $number_answer
* @property string|null $date_time_answer
* @property int $is_required
* @property int $order
* @property int $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Company $company
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $customFieldValues
* @property-read int|null $custom_field_values_count
* @property-read mixed $default_answer
* @property-read mixed $in_use
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField applyFilters(array $filters)
* @method static \Database\Factories\CustomFieldFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereBooleanAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereDateAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereDateTimeAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereIsRequired($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereLabel($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereModelType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereNumberAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereOptions($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereOrder($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField wherePlaceholder($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereStringAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereTimeAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomField whereUpdatedAt($value)
*/
class CustomField extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $custom_field_valuable_type
* @property int $custom_field_valuable_id
* @property string $type
* @property int|null $boolean_answer
* @property string|null $date_answer
* @property string|null $time_answer
* @property string|null $string_answer
* @property int|null $number_answer
* @property string|null $date_time_answer
* @property int $custom_field_id
* @property int $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Company $company
* @property-read \App\Models\CustomField $customField
* @property-read \Illuminate\Database\Eloquent\Model|\Eloquent $customFieldValuable
* @property-read mixed $default_answer
* @method static \Database\Factories\CustomFieldValueFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereBooleanAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereCustomFieldId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereCustomFieldValuableId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereCustomFieldValuableType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereDateAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereDateTimeAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereNumberAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereStringAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereTimeAnswer($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|CustomFieldValue whereUpdatedAt($value)
*/
class CustomFieldValue extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string|null $email
* @property string|null $phone
* @property string|null $password
* @property string|null $remember_token
* @property string|null $facebook_id
* @property string|null $google_id
* @property string|null $github_id
* @property string|null $contact_name
* @property string|null $company_name
* @property string|null $website
* @property bool $enable_portal
* @property int|null $currency_id
* @property int|null $company_id
* @property int|null $creator_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $prefix
* @property string|null $tax_id
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Silber\Bouncer\Database\Ability> $abilities
* @property-read int|null $abilities_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Address> $addresses
* @property-read int|null $addresses_count
* @property-read \App\Models\Address|null $billingAddress
* @property-read \App\Models\Company|null $company
* @property-read Customer|null $creator
* @property-read \App\Models\Currency|null $currency
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Estimate> $estimates
* @property-read int|null $estimates_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Expense> $expenses
* @property-read int|null $expenses_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $fields
* @property-read int|null $fields_count
* @property-read mixed $avatar
* @property-read mixed $formatted_created_at
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Invoice> $invoices
* @property-read int|null $invoices_count
* @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection<int, \Spatie\MediaLibrary\MediaCollections\Models\Media> $media
* @property-read int|null $media_count
* @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
* @property-read int|null $notifications_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Payment> $payments
* @property-read int|null $payments_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\RecurringInvoice> $recurringInvoices
* @property-read int|null $recurring_invoices_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Silber\Bouncer\Database\Role> $roles
* @property-read int|null $roles_count
* @property-read \App\Models\Address|null $shippingAddress
* @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Sanctum\PersonalAccessToken> $tokens
* @property-read int|null $tokens_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer applyFilters(array $filters)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer applyInvoiceFilters(array $filters)
* @method static \Database\Factories\CustomerFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer invoicesBetween($start, $end)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCompanyName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereContactName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCreatorId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereCustomer($customer_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereDisplayName($displayName)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereEnablePortal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereFacebookId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereGithubId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereGoogleId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereIs($role)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereIsAll($role)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereIsNot($role)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereOrder($orderByField, $orderBy)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer wherePassword($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer wherePhone($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer wherePrefix($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereRememberToken($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereTaxId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Customer whereWebsite($value)
*/
class Customer extends \Eloquent implements \Spatie\MediaLibrary\HasMedia {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $from
* @property string $to
* @property string $subject
* @property string $body
* @property string $mailable_type
* @property string $mailable_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $token
* @property-read \Illuminate\Database\Eloquent\Model|\Eloquent $mailable
* @method static \Database\Factories\EmailLogFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereBody($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereFrom($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereMailableId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereMailableType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereSubject($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereTo($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereToken($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EmailLog whereUpdatedAt($value)
*/
class EmailLog extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $estimate_date
* @property string|null $expiry_date
* @property string $estimate_number
* @property string $status
* @property string|null $reference_number
* @property string $tax_per_item
* @property string $discount_per_item
* @property string|null $notes
* @property float|null $discount
* @property string|null $discount_type
* @property int|null $discount_val
* @property int $sub_total
* @property int $total
* @property int $tax
* @property string|null $unique_hash
* @property int|null $user_id
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int|null $creator_id
* @property string|null $template_name
* @property int|null $customer_id
* @property float|null $exchange_rate
* @property int|null $base_discount_val
* @property int|null $base_sub_total
* @property int|null $base_total
* @property int|null $base_tax
* @property int|null $currency_id
* @property int|null $sequence_number
* @property int|null $customer_sequence_number
* @property string|null $sales_tax_type
* @property string|null $sales_tax_address_type
* @property-read \App\Models\Company|null $company
* @property-read \App\Models\User|null $creator
* @property-read \App\Models\Currency|null $currency
* @property-read \App\Models\Customer|null $customer
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\EmailLog> $emailLogs
* @property-read int|null $email_logs_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $fields
* @property-read int|null $fields_count
* @property-read mixed $estimate_pdf_url
* @property-read mixed $formatted_estimate_date
* @property-read mixed $formatted_expiry_date
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\EstimateItem> $items
* @property-read int|null $items_count
* @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection<int, \Spatie\MediaLibrary\MediaCollections\Models\Media> $media
* @property-read int|null $media_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Tax> $taxes
* @property-read int|null $taxes_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate applyFilters(array $filters)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate estimatesBetween($start, $end)
* @method static \Database\Factories\EstimateFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereBaseDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereBaseSubTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereBaseTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereBaseTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCreatorId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCustomer($customer_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCustomerId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereCustomerSequenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereDiscount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereDiscountPerItem($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereDiscountType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereEstimate($estimate_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereEstimateDate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereEstimateNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereExpiryDate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereOrder($orderByField, $orderBy)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereReferenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereSalesTaxAddressType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereSalesTaxType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereSequenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereSubTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereTaxPerItem($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereTemplateName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereUniqueHash($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Estimate whereUserId($value)
*/
class Estimate extends \Eloquent implements \Spatie\MediaLibrary\HasMedia {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string|null $description
* @property string $discount_type
* @property float $quantity
* @property float|null $discount
* @property int|null $discount_val
* @property int $price
* @property int $tax
* @property int $total
* @property int|null $item_id
* @property int $estimate_id
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $unit_name
* @property string|null $exchange_rate
* @property int|null $base_discount_val
* @property int|null $base_price
* @property int|null $base_tax
* @property int|null $base_total
* @property-read \App\Models\Estimate $estimate
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $fields
* @property-read int|null $fields_count
* @property-read \App\Models\Item|null $item
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Tax> $taxes
* @property-read int|null $taxes_count
* @method static \Database\Factories\EstimateItemFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereBaseDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereBasePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereBaseTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereBaseTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereCompany($company_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereDiscount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereDiscountType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereEstimateId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereItemId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem wherePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereUnitName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|EstimateItem whereUpdatedAt($value)
*/
class EstimateItem extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property int|null $company_id
* @property int|null $base_currency_id
* @property int|null $currency_id
* @property float|null $exchange_rate
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Company|null $company
* @property-read \App\Models\Currency|null $currency
* @method static \Database\Factories\ExchangeRateLogFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereBaseCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateLog whereUpdatedAt($value)
*/
class ExchangeRateLog extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $driver
* @property string $key
* @property array<array-key, mixed>|null $currencies
* @property array<array-key, mixed>|null $driver_config
* @property bool $active
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Company|null $company
* @method static \Database\Factories\ExchangeRateProviderFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereCurrencies($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereDriver($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereDriverConfig($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereKey($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExchangeRateProvider whereUpdatedAt($value)
*/
class ExchangeRateProvider extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $expense_date
* @property string|null $attachment_receipt
* @property int $amount
* @property string|null $notes
* @property int $expense_category_id
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int|null $user_id
* @property int|null $creator_id
* @property int|null $customer_id
* @property float|null $exchange_rate
* @property int|null $base_amount
* @property int|null $currency_id
* @property int|null $payment_method_id
* @property-read \App\Models\ExpenseCategory $category
* @property-read \App\Models\Company|null $company
* @property-read \App\Models\User|null $creator
* @property-read \App\Models\Currency|null $currency
* @property-read \App\Models\Customer|null $customer
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $fields
* @property-read int|null $fields_count
* @property-read mixed $formatted_created_at
* @property-read mixed $formatted_expense_date
* @property-read mixed $receipt
* @property-read mixed $receipt_meta
* @property-read mixed $receipt_url
* @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection<int, \Spatie\MediaLibrary\MediaCollections\Models\Media> $media
* @property-read int|null $media_count
* @property-read \App\Models\PaymentMethod|null $paymentMethod
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense applyFilters(array $filters)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense expensesAttributes()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense expensesBetween($start, $end)
* @method static \Database\Factories\ExpenseFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereAmount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereAttachmentReceipt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereBaseAmount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCategory($categoryId)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCategoryName($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCreatorId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereCustomerId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereExpense($expense_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereExpenseCategoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereExpenseDate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereOrder($orderByField, $orderBy)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense wherePaymentMethodId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereUser($customer_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Expense whereUserId($value)
*/
class Expense extends \Eloquent implements \Spatie\MediaLibrary\HasMedia {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string|null $description
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Company|null $company
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Expense> $expenses
* @property-read int|null $expenses_count
* @property-read mixed $amount
* @property-read mixed $formatted_created_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory applyFilters(array $filters)
* @method static \Database\Factories\ExpenseCategoryFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereCategory($category_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|ExpenseCategory whereUpdatedAt($value)
*/
class ExpenseCategory extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string $type
* @property string $driver
* @property bool $set_as_default
* @property string $credentials
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk applyFilters(array $filters)
* @method static \Database\Factories\FileDiskFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk fileDisksBetween($start, $end)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereCredentials($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereDriver($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereOrder($orderByField, $orderBy)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereSetAsDefault($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|FileDisk whereUpdatedAt($value)
*/
class FileDisk extends \Eloquent {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $invoice_date
* @property string|null $due_date
* @property string $invoice_number
* @property string|null $reference_number
* @property string $status
* @property string $paid_status
* @property string $tax_per_item
* @property string $discount_per_item
* @property string|null $notes
* @property string|null $discount_type
* @property float|null $discount
* @property int|null $discount_val
* @property int $sub_total
* @property int $total
* @property int $tax
* @property int $due_amount
* @property int $sent
* @property int $viewed
* @property string|null $unique_hash
* @property int|null $user_id
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property int|null $creator_id
* @property string|null $template_name
* @property int|null $customer_id
* @property int|null $recurring_invoice_id
* @property float|null $exchange_rate
* @property int|null $base_discount_val
* @property int|null $base_sub_total
* @property int|null $base_total
* @property int|null $base_tax
* @property int|null $base_due_amount
* @property int|null $currency_id
* @property int|null $sequence_number
* @property int|null $customer_sequence_number
* @property string|null $sales_tax_type
* @property string|null $sales_tax_address_type
* @property int $overdue
* @property-read \App\Models\Company|null $company
* @property-read \App\Models\User|null $creator
* @property-read \App\Models\Currency|null $currency
* @property-read \App\Models\Customer|null $customer
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\EmailLog> $emailLogs
* @property-read int|null $email_logs_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $fields
* @property-read int|null $fields_count
* @property-read mixed $allow_edit
* @property-read mixed $formatted_created_at
* @property-read mixed $formatted_due_date
* @property-read mixed $formatted_invoice_date
* @property-read mixed $formatted_notes
* @property-read mixed $invoice_pdf_url
* @property-read mixed $payment_module_enabled
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\InvoiceItem> $items
* @property-read int|null $items_count
* @property-read \Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection<int, \Spatie\MediaLibrary\MediaCollections\Models\Media> $media
* @property-read int|null $media_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Payment> $payments
* @property-read int|null $payments_count
* @property-read \App\Models\RecurringInvoice|null $recurringInvoice
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Tax> $taxes
* @property-read int|null $taxes_count
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Transaction> $transactions
* @property-read int|null $transactions_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice applyFilters(array $filters)
* @method static \Database\Factories\InvoiceFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice invoicesBetween($start, $end)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice paginateData($limit)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereBaseDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereBaseDueAmount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereBaseSubTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereBaseTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereBaseTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCompany()
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCreatorId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCurrencyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCustomer($customer_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCustomerId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereCustomerSequenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDiscount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDiscountPerItem($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDiscountType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDueAmount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDueDate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereDueStatus($status)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereInvoice($invoice_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereInvoiceDate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereInvoiceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereOrder($orderByField, $orderBy)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereOverdue($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice wherePaidStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereRecurringInvoiceId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereReferenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereSalesTaxAddressType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereSalesTaxType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereSearch($search)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereSent($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereSequenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereSubTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereTaxPerItem($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereTemplateName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereUniqueHash($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|Invoice whereViewed($value)
*/
class Invoice extends \Eloquent implements \Spatie\MediaLibrary\HasMedia {}
}
namespace App\Models{
/**
*
*
* @property int $id
* @property string $name
* @property string|null $description
* @property string $discount_type
* @property int $price
* @property float $quantity
* @property float|null $discount
* @property int $discount_val
* @property int $tax
* @property int $total
* @property int|null $invoice_id
* @property int|null $item_id
* @property int|null $company_id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property string|null $unit_name
* @property int|null $recurring_invoice_id
* @property int|null $base_price
* @property string|null $exchange_rate
* @property int|null $base_discount_val
* @property int|null $base_tax
* @property int|null $base_total
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\CustomFieldValue> $fields
* @property-read int|null $fields_count
* @property-read \App\Models\Invoice|null $invoice
* @property-read \App\Models\Item|null $item
* @property-read \App\Models\RecurringInvoice|null $recurringInvoice
* @property-read \Illuminate\Database\Eloquent\Collection<int, \App\Models\Tax> $taxes
* @property-read int|null $taxes_count
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem applyInvoiceFilters(array $filters)
* @method static \Database\Factories\InvoiceItemFactory factory($count = null, $state = [])
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem invoicesBetween($start, $end)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem itemAttributes()
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem newQuery()
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem query()
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereBaseDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereBasePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereBaseTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereBaseTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereCompany($company_id)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereCompanyId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereDiscount($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereDiscountType($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereDiscountVal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereInvoiceId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereItemId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem wherePrice($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereRecurringInvoiceId($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereTax($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereUnitName($value)
* @method static \Illuminate\Database\Eloquent\Builder<static>|InvoiceItem whereUpdatedAt($value)
*/
class InvoiceItem extends \Eloquent {}
}
namespace App\Models{
/**