@extends('adminlte::page') @section('title', $tabTitle) @section('content_header') @if($formType == 'edit' && isset($wo)) @endif @if(isset($wo->id)) @endif @stop @section('content')
@csrf @if(isset($wo)) @endif
{{--
--}} {{-- --}} {{-- --}} {{--
--}}
@if($formType != 'create')
@if (isset($wo) && ($wo->signature || $wo->email_signed == 'email_confirmed'))
Potpis klijenta
@else @endif
@endif
can_invoice) ? 'checked' : '' }} {{ !isset($wo) || $wo->completed != 1 ? 'disabled' : '' }}>
@if($errors->hasBag($errorBag)) @for($row = 1; $row <= count(old('wo_item')); $row++) @include('working_orders.partials.item_row', [ 'counter' => $row, ]) @endfor @elseif(isset($wo)) @foreach($wo->items->sortBy('rbr')->values() as $index => $item) @include('working_orders.partials.item_row', [ 'counter' => $index+1, 'item' => $item, 'wo_completed' => $wo->completed, ]) @endforeach @else @include('working_orders.partials.item_row', [ 'counter' => 1, 'travel_cost' => 1, ]) @endif
Rbr Datum Šifra / kat. broj Naziv artikla / usluge Serviser Kol JMJ
@if($formType == 'create') @elseif($formType == 'edit' && isset($wo)) @if($wo->completed) @if($auth) @endif @else Odustani @endif @if($wo->can_invoice && !$wo->is_invoiced) @endif @endif
@stop @section('footer') @append @push('css') @include('adminlte::libs.css.datatables') @include('adminlte::libs.css.select2') @endpush @push('js') @php $columns = [ [ 'data' => 'month_of_servicing', 'name' => 'month_of_servicing', 'title' => __('locations.table.columns.month_of_servicing') ], [ 'data' => 'name', 'name' => 'name', 'title' => __('locations.table.columns.name') ], [ 'data' => 'address', 'name' => 'address', 'title' => __('locations.table.columns.address') ], [ 'data' => 'city', 'name' => 'city', 'title' => __('locations.table.columns.city') ], [ 'data' => 'region', 'name' => 'region', 'title' => __('locations.table.columns.region') ], [ 'data' => 'service_type', 'name' => 'service_type', 'title' => __('locations.table.columns.service_type') ], [ 'data' => 'actions', 'name' => 'actions', 'title' => __('locations.table.columns.actions'), 'sortable' => false, 'width' => '12%' ], [ 'data' => 'done_todo', 'name' => 'done_todo', 'title' => __('locations.table.columns.done_todo') ], [ 'data' => 'month_of_servicing_string', 'name' => 'month_of_servicing_string', 'title' => __('locations.table.columns.month_of_servicing_string') ], ]; $url = url()->current(); $baseUrl = url('/'); $endpoint = [ 'url' => "{$baseUrl}/working_order_locations/viewAllLocations", 'dataSrc' => 'data' ]; @endphp @include('adminlte::libs.js.datatables') @include('adminlte::libs.js.select2') {{-- Add inline js when developing or testing here. When you're finished, transfer to working_orders.js --}} @endpush