@extends('layouts.admin') @section('styles') @endsection @section('app')
@if (in_array(auth()->user()->role_id, [1, 3])) @endif
@if (in_array(auth()->user()->role_id, [1, 3])) @endif @foreach ($barbershop as $item) @if (in_array(auth()->user()->role_id, [1, 3])) @endif @endforeach
No Nama Kontak Patokan Alamat Dibuka Tutup Kas Gambar TanggalAksi
{{ $loop->iteration }} {{ $item->name }} {{ $item->contact_number }} {{ $item->landmark }} {{ $item->address }} {{ formatDateIndo($item->opened) }} {{ $item->closed ? formatDateIndo($item->closed) : 'Masih Beroperasi' }} {{ formatToRupiah($item->cash) }} @if ($item->attachment && $item->attachment->formatted_attachment) attachment->formatted_attachment}") }}"> attachment->formatted_attachment}") }}" alt="{{ $item->name }}" width="77" height="77"> @else Default Image @endif {{ formatDateIndo($item->created_at) }}
  • @if (auth()->user()->role_id === 1)
  • @csrf @method('delete')
  • @endif
@endsection @section('afterScripts') @endsection