Skip to content

Commit

Permalink
Story /issues/378
Browse files Browse the repository at this point in the history
  • Loading branch information
SMEWebify committed May 6, 2024
1 parent 0fe9200 commit e81e1bc
Show file tree
Hide file tree
Showing 4 changed files with 233 additions and 3 deletions.
58 changes: 57 additions & 1 deletion resources/views/livewire/order-lines.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,64 @@
</div>
</div>
<div class="btn-group btn-group-sm">
<!-- Button Modal -->
<button type="button" class="btn bg-warning" data-toggle="modal" data-target="#OrderLineTasks{{ $OrderLine->id }}">
<i class="fa fa-lg fa-fw fas fa-list"></i>
</button>
<!-- Modal {{ $OrderLine->id }} -->
<x-adminlte-modal id="OrderLineTasks{{ $OrderLine->id }}" title="Task detail for {{ $OrderLine->label }}" theme="warning" icon="fa fa-pen" size='lg' disable-animations>
<div class="card-body">
<div class="row">
<table class="table table-hover">
<thead>
<tr>
<th>{{ __('general_content.order_trans_key') }}</th>
<th>{{ __('general_content.label_trans_key') }}</th>
<th>{{ __('general_content.service_trans_key') }}</th>
<th>{{ __('general_content.total_time_trans_key') }}</th>
<th>{{ __('general_content.qty_trans_key') }}</th>
<th>{{ __('general_content.cost_trans_key') }}</th>
<th>{{ __('general_content.margin_trans_key') }}</th>
<th>{{ __('general_content.price_trans_key') }}</th>
</tr>
</thead>
<tbody>
@forelse ( $OrderLine->Task as $Task)
<tr>
<td>{{ $Task->ordre }}</td>
<td>{{ $Task->label }}</td>
<td @if($Task->methods_services_id ) style="background-color: {{ $Task->service['color'] }};" @endif >
@if($Task->methods_services_id )
@if( $Task->service['picture'])
<p data-toggle="tooltip" data-html="true" title="<img alt='Service' class='profile-user-img img-fluid img-circle' src='{{ asset('/images/methods/'. $Task->service['picture']) }}'>">
<span>{{ $Task->service['label'] }}</span>
</p>
@else
{{ $Task->service['label'] }}
@endif
@endif
</td>
<td>{{ $Task->TotalTime() }} h</td>
<td>{{ $Task->qty }}</td>
<td>{{ $Task->unit_cost }} {{ $Factory->curency }}</td>
<td>{{ $Task->Margin() }} %</td>
<td>{{ $Task->unit_price }} {{ $Factory->curency }}</td>
</tr>
@empty
<x-EmptyDataLine col="12" text="{{ __('general_content.no_data_trans_key') }}" />
@endforelse
</tbody>
</table>
</div>
</div>
<div class="card-footer">
<a class="btn btn-info btn-sm" href="{{ route('task.manage', ['id_type'=> 'order_lines_id', 'id_page'=> $OrderLine->orders_id, 'id_line' => $OrderLine->id])}}">
<i class="fas fa-folder"></i>
{{ __('general_content.view_trans_key') }}
</a>
</div>
</x-adminlte-modal>
<a href="{{ route('task.manage', ['id_type'=> 'order_lines_id', 'id_page'=> $OrderLine->orders_id, 'id_line' => $OrderLine->id])}}" class="dropdown-item" ><span class="text-success"><i class="fa fa-lg fa-fw fas fa-list"></i> {{ __('general_content.tasks_trans_key') }}{{ $OrderLine->getAllTaskCountAttribute() }}</span></a>

</div>
</div>
</td>
Expand Down
59 changes: 58 additions & 1 deletion resources/views/livewire/orders-lines-index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,64 @@
</td>
<td>
<div class="btn-group btn-group-sm">
<a href="{{ route('task.manage', ['id_type'=> 'order_lines_id', 'id_page'=> $OrderLine->orders_id, 'id_line' => $OrderLine->id])}}" class="dropdown-item" ><span class="text-success"><i class="fa fa-lg fa-fw fas fa-list"></i> {{ __('general_content.tasks_trans_key') }}{{ $OrderLine->getAllTaskCountAttribute() }}</span></a></button>
<!-- Button Modal -->
<button type="button" class="btn bg-warning" data-toggle="modal" data-target="#OrderLineTasks{{ $OrderLine->id }}">
<i class="fa fa-lg fa-fw fas fa-list"></i>
</button>
<!-- Modal {{ $OrderLine->id }} -->
<x-adminlte-modal id="OrderLineTasks{{ $OrderLine->id }}" title="Task detail for {{ $OrderLine->label }}" theme="warning" icon="fa fa-pen" size='lg' disable-animations>
<div class="card-body">
<div class="row">
<table class="table table-hover">
<thead>
<tr>
<th>{{ __('general_content.order_trans_key') }}</th>
<th>{{ __('general_content.label_trans_key') }}</th>
<th>{{ __('general_content.service_trans_key') }}</th>
<th>{{ __('general_content.total_time_trans_key') }}</th>
<th>{{ __('general_content.qty_trans_key') }}</th>
<th>{{ __('general_content.cost_trans_key') }}</th>
<th>{{ __('general_content.margin_trans_key') }}</th>
<th>{{ __('general_content.price_trans_key') }}</th>
</tr>
</thead>
<tbody>
@forelse ( $OrderLine->Task as $Task)
<tr>
<td>{{ $Task->ordre }}</td>
<td>{{ $Task->label }}</td>
<td @if($Task->methods_services_id ) style="background-color: {{ $Task->service['color'] }};" @endif >
@if($Task->methods_services_id )
@if( $Task->service['picture'])
<p data-toggle="tooltip" data-html="true" title="<img alt='Service' class='profile-user-img img-fluid img-circle' src='{{ asset('/images/methods/'. $Task->service['picture']) }}'>">
<span>{{ $Task->service['label'] }}</span>
</p>
@else
{{ $Task->service['label'] }}
@endif
@endif
</td>
<td>{{ $Task->TotalTime() }} h</td>
<td>{{ $Task->qty }}</td>
<td>{{ $Task->unit_cost }} {{ $Factory->curency }}</td>
<td>{{ $Task->Margin() }} %</td>
<td>{{ $Task->unit_price }} {{ $Factory->curency }}</td>
</tr>
@empty
<x-EmptyDataLine col="12" text="{{ __('general_content.no_data_trans_key') }}" />
@endforelse
</tbody>
</table>
</div>
</div>
<div class="card-footer">
<a class="btn btn-info btn-sm" href="{{ route('task.manage', ['id_type'=> 'order_lines_id', 'id_page'=> $OrderLine->orders_id, 'id_line' => $OrderLine->id])}}">
<i class="fas fa-folder"></i>
{{ __('general_content.view_trans_key') }}
</a>
</div>
</x-adminlte-modal>
<a href="{{ route('task.manage', ['id_type'=> 'order_lines_id', 'id_page'=> $OrderLine->orders_id, 'id_line' => $OrderLine->id])}}" class="dropdown-item" ><span class="text-success"><i class="fa fa-lg fa-fw fas fa-list"></i> {{ __('general_content.tasks_trans_key') }}{{ $OrderLine->getAllTaskCountAttribute() }}</span></a>
</div>
</td>
<td>
Expand Down
59 changes: 58 additions & 1 deletion resources/views/livewire/quote-lines.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,64 @@
</div>
</div>
<div class="btn-group btn-group-sm">
<a href="{{ route('task.manage', ['id_type'=> 'quote_lines_id', 'id_page'=> $QuoteLine->quotes_id, 'id_line' => $QuoteLine->id])}}" class="dropdown-item" ><span class="text-success"><i class="fa fa-lg fa-fw fas fa-list"></i> {{ __('general_content.tasks_trans_key') }}{{ $QuoteLine->getAllTaskCountAttribute() }}</span></a></button>
<!-- Button Modal -->
<button type="button" class="btn bg-warning" data-toggle="modal" data-target="#QuoteLineTasks{{ $QuoteLine->id }}">
<i class="fa fa-lg fa-fw fas fa-list"></i>
</button>
<!-- Modal {{ $QuoteLine->id }} -->
<x-adminlte-modal id="QuoteLineTasks{{ $QuoteLine->id }}" title="Task detail for {{ $QuoteLine->label }}" theme="warning" icon="fa fa-pen" size='lg' disable-animations>
<div class="card-body">
<div class="row">
<table class="table table-hover">
<thead>
<tr>
<th>{{ __('general_content.order_trans_key') }}</th>
<th>{{ __('general_content.label_trans_key') }}</th>
<th>{{ __('general_content.service_trans_key') }}</th>
<th>{{ __('general_content.total_time_trans_key') }}</th>
<th>{{ __('general_content.qty_trans_key') }}</th>
<th>{{ __('general_content.cost_trans_key') }}</th>
<th>{{ __('general_content.margin_trans_key') }}</th>
<th>{{ __('general_content.price_trans_key') }}</th>
</tr>
</thead>
<tbody>
@forelse ( $QuoteLine->Task as $Task)
<tr>
<td>{{ $Task->ordre }}</td>
<td>{{ $Task->label }}</td>
<td @if($Task->methods_services_id ) style="background-color: {{ $Task->service['color'] }};" @endif >
@if($Task->methods_services_id )
@if( $Task->service['picture'])
<p data-toggle="tooltip" data-html="true" title="<img alt='Service' class='profile-user-img img-fluid img-circle' src='{{ asset('/images/methods/'. $Task->service['picture']) }}'>">
<span>{{ $Task->service['label'] }}</span>
</p>
@else
{{ $Task->service['label'] }}
@endif
@endif
</td>
<td>{{ $Task->TotalTime() }} h</td>
<td>{{ $Task->qty }}</td>
<td>{{ $Task->unit_cost }} {{ $Factory->curency }}</td>
<td>{{ $Task->Margin() }} %</td>
<td>{{ $Task->unit_price }} {{ $Factory->curency }}</td>
</tr>
@empty
<x-EmptyDataLine col="12" text="{{ __('general_content.no_data_trans_key') }}" />
@endforelse
</tbody>
</table>
</div>
</div>
<div class="card-footer">
<a class="btn btn-info btn-sm" href="{{ route('task.manage', ['id_type'=> 'quote_lines_id', 'id_page'=> $QuoteLine->quotes_id, 'id_line' => $QuoteLine->id])}}">
<i class="fas fa-folder"></i>
{{ __('general_content.view_trans_key') }}
</a>
</div>
</x-adminlte-modal>
<a href="{{ route('task.manage', ['id_type'=> 'quote_lines_id', 'id_page'=> $QuoteLine->quotes_id, 'id_line' => $QuoteLine->id])}}" class="dropdown-item" ><span class="text-success"> {{ __('general_content.tasks_trans_key') }}{{ $QuoteLine->getAllTaskCountAttribute() }}</span></a></button>
</div>
</div>
</td>
Expand Down
Loading

0 comments on commit e81e1bc

Please sign in to comment.