@extends('layouts.resources')
@section('content')
  
<div class="container mx-auto w-50 text-center pt-5">
    <h1 class="display-4">Serviço: {{ $service->title }}</h1>
            <h3 class="">  Veiculo: {{$service->vehicle->model}} </h3>   
    @if($service->status == 0)
        @include('resources.finish-service')
    @endif
</div>

<div class="container mx-auto pt-5 mt-5 w-50">

    <h2 class="text-center p-2"> Tarefas Pendentes: </h2>
    
        @foreach ($tasks as $task)
            @if ($task->status == 0)
                @include('resources.task-table')
            @endif
        @endforeach
    

    
    <h2 class="text-center p-2"> Tarefas Completas: </h2>
        @foreach ($tasks as $task)
                @if ($task->status == 1)
                    @include('resources.task-table')
                @endif
        @endforeach
    

        <h2 class="text-center">Cadastre uma nova tarefa</h2>

        @include('form.task-form')

</div>  
@endsection

