|
18 | 18 | <ul class="nav nav-pills">
|
19 | 19 | <li class="nav-item"><a class="nav-link active" href="#Order" data-toggle="tab">{{ __('general_content.order_info_trans_key') }}</a></li>
|
20 | 20 | <li class="nav-item"><a class="nav-link" href="#Lines" data-toggle="tab">{{ __('general_content.order_line_trans_key') }} ({{ count($Order->OrderLines) }})</a></li>
|
21 |
| - <li class="nav-item"><a class="nav-link" href="#Charts" data-toggle="tab">{{ __('general_content.charts_trans_key') }}</a></li><li class="nav-item"> |
22 |
| - <li class="nav-item"><a class="nav-link" href="#Bilan" data-toggle="tab">Bilan d'affaire</a></li><li class="nav-item"> |
| 21 | + <li class="nav-item"><a class="nav-link" href="#Charts" data-toggle="tab">{{ __('general_content.charts_trans_key') }}</a></li> |
| 22 | + <li class="nav-item"><a class="nav-link" href="#Bilan" data-toggle="tab">{{ __('general_content.business_Review_trans_key') }}</a></li> |
| 23 | + <li class="nav-item"><a class="nav-link" href="#purchase" data-toggle="tab">{{ __('general_content.purchase_list_trans_key') }} ({{ $Order->purchase_lines_count }})</a></li> |
| 24 | + |
23 | 25 | <!--<a class="nav-link" href="#Views" data-toggle="tab">{{ __('general_content.guest_page_trans_key') }}</a></li>-->
|
24 | 26 | @if(count($CustomFields)> 0)
|
25 | 27 | <li class="nav-item"><a class="nav-link" href="#CustomFields" data-toggle="tab">{{ __('general_content.custom_fields_trans_key') }} ({{ count($CustomFields) }})</a></li>
|
|
299 | 301 | </div>
|
300 | 302 | <div class="tab-pane " id="Views">
|
301 | 303 | </div>
|
| 304 | + <div class="tab-pane" id="purchase"> |
| 305 | + <div class="table-responsive p-0"> |
| 306 | + <table class="table table-hover"> |
| 307 | + <thead> |
| 308 | + <tr> |
| 309 | + <th>{{ __('general_content.order_trans_key') }}</th> |
| 310 | + <th>{{ __('general_content.label_trans_key') }}</th> |
| 311 | + <th>{{__('general_content.task_trans_key') }}</th> |
| 312 | + <th>{{ __('general_content.product_trans_key') }}</th> |
| 313 | + <th>{{ __('general_content.qty_trans_key') }}</th> |
| 314 | + <th>{{ __('general_content.qty_reciept_trans_key') }}</th> |
| 315 | + <th>{{ __('general_content.qty_invoice_trans_key') }}</th> |
| 316 | + <th>{{ __('general_content.price_trans_key') }}</th> |
| 317 | + <th>{{ __('general_content.discount_trans_key') }}</th> |
| 318 | + <th>{{ __('general_content.vat_trans_key') }}</th> |
| 319 | + </tr> |
| 320 | + </thead> |
| 321 | + <tbody> |
| 322 | + @forelse ($Order->OrderLines as $orderLine) |
| 323 | + @foreach ($orderLine->purchase_lines as $PurchaseLine) |
| 324 | + <tr> |
| 325 | + <td> |
| 326 | + <a class="btn btn-primary btn-sm" href="{{ route('purchases.show', ['id' => $PurchaseLine->purchases_id])}}"> |
| 327 | + <i class="fas fa-folder"></i> |
| 328 | + {{ $PurchaseLine->purchase->code }} |
| 329 | + </a> |
| 330 | + </td> |
| 331 | + <td> |
| 332 | + @if($PurchaseLine->tasks->OrderLines ?? null) |
| 333 | + {{ $PurchaseLine->tasks->OrderLines->label }} |
| 334 | + @endif |
| 335 | + </td> |
| 336 | + <td> |
| 337 | + @if($PurchaseLine->tasks_id ?? null) |
| 338 | + <a href="{{ route('production.task.statu.id', ['id' => $PurchaseLine->tasks->id]) }}" class="btn btn-sm btn-success">{{__('general_content.view_trans_key') }} </a> |
| 339 | + #{{ $PurchaseLine->tasks->id }} - {{ $PurchaseLine->tasks->label }} |
| 340 | + @if($PurchaseLine->tasks->component_id ) |
| 341 | + - {{ $PurchaseLine->tasks->Component['label'] }} |
| 342 | + @endif |
| 343 | + @else |
| 344 | + {{ $PurchaseLine->label }} |
| 345 | + @endif |
| 346 | + </td> |
| 347 | + |
| 348 | + <td> |
| 349 | + @if($PurchaseLine->tasks_id ?? null) |
| 350 | + @if($PurchaseLine->tasks->component_id ) |
| 351 | + <x-ButtonTextView route="{{ route('products.show', ['id' => $PurchaseLine->tasks->component_id])}}" /> |
| 352 | + @endif |
| 353 | + @else |
| 354 | + @if($PurchaseLine->product_id ) |
| 355 | + <x-ButtonTextView route="{{ route('products.show', ['id' => $PurchaseLine->product_id])}}" /> |
| 356 | + @endif |
| 357 | + @endif |
| 358 | + </td> |
| 359 | + <td>{{ $PurchaseLine->qty }}</td> |
| 360 | + <td>{{ $PurchaseLine->receipt_qty }}</td> |
| 361 | + <td>{{ $PurchaseLine->invoiced_qty }}</td> |
| 362 | + <td>{{ $PurchaseLine->selling_price }} {{ $Factory->curency }}</td> |
| 363 | + <td>{{ $PurchaseLine->discount }} %</td> |
| 364 | + <td> |
| 365 | + @if($PurchaseLine->accounting_vats_id) |
| 366 | + {{ $PurchaseLine->VAT['rate'] }} % |
| 367 | + @else |
| 368 | + - |
| 369 | + @endif |
| 370 | + </td> |
| 371 | + </tr> |
| 372 | + @endforeach |
| 373 | + @empty |
| 374 | + <x-EmptyDataLine col="11" text="{{ __('general_content.no_data_trans_key') }}" /> |
| 375 | + @endforelse |
| 376 | + <tfoot> |
| 377 | + <tr> |
| 378 | + <th>{{ __('general_content.order_trans_key') }}</th> |
| 379 | + <th>{{__('general_content.label_trans_key') }}</th> |
| 380 | + <th>{{__('general_content.task_trans_key') }}</th> |
| 381 | + <th>{{ __('general_content.product_trans_key') }}</th> |
| 382 | + <th>{{ __('general_content.qty_trans_key') }}</th> |
| 383 | + <th>{{ __('general_content.qty_reciept_trans_key') }}</th> |
| 384 | + <th>{{ __('general_content.qty_invoice_trans_key') }}</th> |
| 385 | + <th>{{ __('general_content.price_trans_key') }}</th> |
| 386 | + <th>{{ __('general_content.discount_trans_key') }}</th> |
| 387 | + <th>{{ __('general_content.vat_trans_key') }}</th> |
| 388 | + </tr> |
| 389 | + </tfoot> |
| 390 | + </table> |
| 391 | + </div> |
| 392 | + </div> |
302 | 393 | @if($CustomFields)
|
303 | 394 | <div class="tab-pane " id="CustomFields">
|
304 | 395 | @include('include.custom-fields-form', ['id' => $Order->id, 'type' => 'order'])
|
|
0 commit comments