arcadiasuite/plus/resources/views/caixa/abertos.blade.php

58 lines
2.3 KiB
PHP

@extends('layouts.app', ['title' => 'Caixas abertos'])
@section('content')
<div class="card mt-1">
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped table-centered mb-0">
<thead class="table-dark">
<tr>
<th>Caixa</th>
<th>Data Abertura</th>
<th>Data Fechamento</th>
<th>Valor Abertura</th>
<th>Valor Fechamento</th>
<th>Ações</th>
</tr>
</thead>
<tbody>
@forelse ($data as $item)
<tr>
<td>{{ $item->usuario->name }}</td>
<td>{{ __data_pt($item->created_at) }}</td>
<td>{{ $item->data_fechamento ? __data_pt($item->data_fechamento) : '--' }}</td>
<td>{{ __moeda($item->valor_abertura) }}</td>
<td>{{ __moeda($item->valor_fechamento) }}</td>
<td>
<form action="{{ route('caixa.destroy', $item->id) }}" method="post" id="form-{{$item->id}}" style="width: 150px;">
@csrf
@method('delete')
@if($item->status == 0)
<a target="_blank" class="btn btn-dark btn-sm" href="{{ route('caixa.imprimir' , $item) }}"><i class="ri-printer-fill"></i></a>
@endif
<a class="btn btn-primary btn-sm" href="{{ route('caixa.fechar-empresa' , $item) }}"><i class=" ri-list-indefinite"></i></a>
<button type="button" class="btn btn-delete btn-sm btn-danger">
<i class="ri-delete-bin-line"></i>
</button>
</form>
</td>
</tr>
@empty
<tr>
<td colspan="6" class="text-center">Nada encontrado</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
@endsection
@section('js')
@endsection