Small cleanups
This commit is contained in:
parent
d9ca6ec6ba
commit
95abaa78a3
@ -26,7 +26,6 @@ class ProductService extends Model
|
||||
'amount',
|
||||
'amount_price',
|
||||
'notes',
|
||||
'size_unit',
|
||||
];
|
||||
|
||||
protected $appends = [
|
||||
|
@ -15,7 +15,6 @@ public function up(): void
|
||||
$table->foreignId('service_file_id')->nullable();
|
||||
$table->foreignId('service_type_id')->nullable();
|
||||
|
||||
// $table->string('service_type')->nullable();
|
||||
$table->string('placement')->nullable();
|
||||
$table->string('amount')->nullable();
|
||||
$table->string('amount_price')->nullable();
|
||||
|
@ -16,7 +16,6 @@ public function up(): void
|
||||
$table->decimal('height')->nullable();
|
||||
$table->string('unit')->default('inch');
|
||||
$table->integer('setup_number')->nullable();
|
||||
// $table->string('notes')->nullable();
|
||||
$table->softDeletes();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
@ -156,8 +156,8 @@
|
||||
@foreach($order->orderProducts as $product)
|
||||
<tr>
|
||||
<td><code style="font-size: 0.9rem;">{{$product->sku}}</code></td>
|
||||
<td class="text-uppercase">{{$product->product_name}}</td>
|
||||
<td class="text-uppercase">{{$product->color}}</td>
|
||||
<td class="text-uppercase">{{$product->product_name ?? ''}}</td>
|
||||
<td class="text-uppercase">{{$product->color ?? ''}}</td>
|
||||
<td style="width: 40px;">{{$product->productSizes()->get()->where('size', 'xs')->first()->amount ?? ''}}</td>
|
||||
<td style="width: 40px;">{{$product->productSizes()->get()->where('size', 's')->first()->amount ?? ''}}</td>
|
||||
<td style="width: 40px;">{{$product->productSizes()->get()->where('size', 'm')->first()->amount ?? ''}}</td>
|
||||
@ -176,7 +176,7 @@
|
||||
</div>
|
||||
<div class="row mt-3 text-end" style="font-size: 12px">
|
||||
<div class="col">
|
||||
TOTAL QUANTITY: {{$order->totalProductQuantity}}
|
||||
TOTAL QUANTITY: {{$order->totalProductQuantity ?? ''}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -199,7 +199,7 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div class="text-uppercase fw-bold">
|
||||
{{$service->placement}}
|
||||
{{$service->placement ?? ''}}
|
||||
</div>
|
||||
<br>
|
||||
<div class="text-uppercase">
|
||||
@ -221,13 +221,13 @@
|
||||
{{$service->serviceFile->width}}
|
||||
</td>
|
||||
<td>
|
||||
{{$service->serviceFile->height}}
|
||||
{{$service->serviceFile->height ?? ''}}
|
||||
</td>
|
||||
<td>
|
||||
{{$service->serviceFile->size_unit}}
|
||||
{{$service->serviceFile->size_unit ?? ''}}
|
||||
</td>
|
||||
<td>
|
||||
{{$service->amount}}
|
||||
{{$service->amount ?? ''}}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user